Skip to content

Commit 3463c28

Browse files
committed
C++: Add return value dereference to 'callOutput'. This will need to be modified once we get return value side effects in the IR.
1 parent ee46717 commit 3463c28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/ModelUtil.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ Instruction callOutput(CallInstruction call, FunctionOutput output) {
3838
effect.getPrimaryInstruction() = call and
3939
output.isParameterDerefOrQualifierObject(effect.getIndex())
4040
)
41-
// TODO: return value dereference
41+
or
42+
// TODO: modify this when we get return value dereferences
43+
result = call and
44+
output.isReturnValueDeref()
4245
}

0 commit comments

Comments
 (0)