Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dd7675

Browse files
MathiasVPjbj
andauthored
Update cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll
Co-authored-by: Jonas Jensen <[email protected]>
1 parent 53da751 commit 6dd7675

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ pragma[noinline]
220220
private predicate getWrittenField(Instruction instr, Field f, Class c) {
221221
exists(FieldAddressInstruction fa |
222222
fa =
223-
getFieldInstruction([any(StoreInstruction store | instr = store).getDestinationAddress(),
224-
any(WriteSideEffectInstruction write | instr = write).getDestinationAddress()]) and
223+
getFieldInstruction([instr.(StoreInstruction).getDestinationAddress(),
224+
instr.(WriteSideEffectInstruction).getDestinationAddress()]) and
225225
f = fa.getField() and
226226
c = f.getDeclaringType()
227227
)

0 commit comments

Comments
 (0)