File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/semmle/code/cpp/valuenumbering
test/examples/expressions Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,8 @@ private predicate analyzablePointerFieldAccess(PointerFieldAccess access) {
372
372
private predicate mk_PointerFieldAccess ( HashCons qualifier , Field target , PointerFieldAccess access ) {
373
373
analyzablePointerFieldAccess ( access ) and
374
374
target = access .getTarget ( ) and
375
- qualifier = hashCons ( access .getQualifier ( ) .getFullyConverted ( ) )
375
+ qualifier = hashCons ( access .getQualifier ( ) .getFullyConverted ( ) ) and
376
+ not access instanceof ImplicitThisFieldAccess
376
377
}
377
378
378
379
private predicate analyzableImplicitThisFieldAccess ( ImplicitThisFieldAccess access ) {
Original file line number Diff line number Diff line change @@ -1298,7 +1298,7 @@ union_etc.cpp:
1298
1298
# 6| getExpr(): [AssignExpr] ... = ...
1299
1299
# 6| Type = [IntType] int
1300
1300
# 6| ValueCategory = lvalue
1301
- # 6| getLValue(): [PointerFieldAccess] x
1301
+ # 6| getLValue(): [ImplicitThisFieldAccess, PointerFieldAccess] x
1302
1302
# 6| Type = [IntType] int
1303
1303
# 6| ValueCategory = lvalue
1304
1304
# 6| getQualifier(): [ThisExpr] this
@@ -1488,7 +1488,7 @@ union_etc.cpp:
1488
1488
# 33| getExpr(): [AssignExpr] ... = ...
1489
1489
# 33| Type = [IntType] int
1490
1490
# 33| ValueCategory = lvalue
1491
- # 33| getLValue(): [PointerFieldAccess] q
1491
+ # 33| getLValue(): [ImplicitThisFieldAccess, PointerFieldAccess] q
1492
1492
# 33| Type = [IntType] int
1493
1493
# 33| ValueCategory = lvalue
1494
1494
# 33| getQualifier(): [ThisExpr] this
You can’t perform that action at this time.
0 commit comments