Skip to content

Commit c60cb13

Browse files
committed
C++: Do not generate loads for ParenthesisExprs
1 parent 4339e18 commit c60cb13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ predicate ignoreLoad(Expr expr) {
361361
or
362362
expr instanceof FunctionAccess
363363
or
364+
expr instanceof ParenthesisExpr
365+
or
364366
expr.(PointerDereferenceExpr).getOperand().getFullyConverted().getType().getUnspecifiedType()
365367
instanceof FunctionPointerType
366368
or

0 commit comments

Comments
 (0)