File tree Expand file tree Collapse file tree 2 files changed +12
-15
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -666,9 +666,9 @@ class TranslatedStructorQualifierSideEffect extends TranslatedArgumentSideEffect
666666 structorCall .getExpr ( ) = callOrInit and
667667 result = structorCall .getQualifierResult ( )
668668 )
669- or
670- callOrInit instanceof ConstructorFieldInit and
671- result = getTranslatedFunction ( callOrInit .getEnclosingFunction ( ) ) .getLoadThisInstruction ( )
669+ // or
670+ // callOrInit instanceof ConstructorFieldInit and
671+ // result = getTranslatedFunction(callOrInit.getEnclosingFunction()).getLoadThisInstruction()
672672 }
673673}
674674
Original file line number Diff line number Diff line change @@ -924,18 +924,15 @@ newtype TTranslatedElement =
924924 not ignoreExpr ( call ) and
925925 not ignoreSideEffects ( call ) and
926926 (
927- call instanceof ConstructorCall and
928- opcode = getASideEffectOpcode ( call , - 1 )
929- )
930- or
931- (
932- call instanceof ConstructorFieldInit and
933- (
934- opcode instanceof Opcode:: IndirectReadSideEffect
935- or
936- opcode instanceof Opcode:: IndirectMayWriteSideEffect
937- )
938-
927+ call instanceof ConstructorCall and
928+ opcode = getASideEffectOpcode ( call , - 1 )
929+ // or
930+ // call instanceof ConstructorFieldInit and
931+ // (
932+ // opcode instanceof Opcode::IndirectReadSideEffect
933+ // or
934+ // opcode instanceof Opcode::IndirectMayWriteSideEffect
935+ // )
939936 )
940937 } or
941938 // The side effect that initializes newly-allocated memory.
You can’t perform that action at this time.
0 commit comments