aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <>2022-07-25 19:05:24 +0000
committerdrh <>2022-07-25 19:05:24 +0000
commit058e99502a70abb5e67bead9a4146f4523ff89d9 (patch)
tree6575a09911c40e273f018fb1984a92a75627ec01 /src/wherecode.c
parent6aabb72618e1f8e5898dd408f01f7de8bdad2e2f (diff)
downloadsqlite-058e99502a70abb5e67bead9a4146f4523ff89d9.tar.gz
sqlite-058e99502a70abb5e67bead9a4146f4523ff89d9.zip
Small performance increase and size reduction by splitting out the
sqlite3VdbeGetLastOp() from sqlite3VdbeGetOp(). FossilOrigin-Name: 92ac01d41d46ab73e189b1e5596ea63e5edb5b15639c5d7bdb981b95366c069b
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 04f1c374d..db7c60ec2 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -892,7 +892,7 @@ static void whereLikeOptimizationStringFixup(
if( pTerm->wtFlags & TERM_LIKEOPT ){
VdbeOp *pOp;
assert( pLevel->iLikeRepCntr>0 );
- pOp = sqlite3VdbeGetOp(v, -1);
+ pOp = sqlite3VdbeGetLastOp(v);
assert( pOp!=0 );
assert( pOp->opcode==OP_String8
|| pTerm->pWC->pWInfo->pParse->db->mallocFailed );