mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
C++: Use refactored isFirstAllocatorCallArgument()
This commit is contained in:
@@ -151,7 +151,7 @@ private predicate ignoreExprOnly(Expr expr) {
|
||||
// The extractor deliberately emits an `ErrorExpr` as the first argument to
|
||||
// the allocator call, if any, of a `NewOrNewArrayExpr`. That `ErrorExpr`
|
||||
// should not be translated.
|
||||
exists(NewOrNewArrayExpr new | expr = new.getAllocatorCall().getArgument(0))
|
||||
expr.(ErrorExpr).isFirstAllocatorCallArgument()
|
||||
or
|
||||
not translateFunction(getEnclosingFunction(expr)) and
|
||||
not Raw::varHasIRFunc(getEnclosingVariable(expr))
|
||||
|
||||
Reference in New Issue
Block a user