Skip to content

Commit 74f1b2c

Browse files
committed
WIP
1 parent d50e223 commit 74f1b2c

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)