Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-05 11:00:17 +00:00
committed by GitHub
parent a8020f4f78
commit 2908acfb52

View File

@@ -1296,9 +1296,9 @@ private module GetConvertedResultExpression {
private predicate excludeAsDefinitionResult(StoreInstruction store) {
// Exclude the store to the temporary generated by a ternary expression.
exists(TranslatedConditionalExpr tce |
store = tce.getInstruction(any(ConditionValueFalseStoreTag tag))
store = tce.getInstruction(ConditionValueFalseStoreTag())
or
store = tce.getInstruction(any(ConditionValueTrueStoreTag tag))
store = tce.getInstruction(ConditionValueTrueStoreTag())
)
}