We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f9374 commit 291df97Copy full SHA for 291df97
cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll
@@ -397,6 +397,15 @@ class TranslatedNewAllocationSideEffects extends TranslatedAllocationSideEffects
397
}
398
399
400
+class TranslatedNewArrayAllocationSideEffects extends TranslatedAllocationSideEffects {
401
+ override NewArrayAllocationExpr expr;
402
+
403
+ override Instruction getPrimaryInstructionForSideEffect(InstructionTag tag) {
404
+ tag = OnlyInstructionTag() and
405
+ result = getTranslatedAllocatorCall(expr).getInstruction(CallTag())
406
+ }
407
+}
408
409
class TranslatedCallSideEffects extends TranslatedSideEffects, TTranslatedCallSideEffects {
410
Call expr;
411
0 commit comments