Skip to content

Commit 0cb826a

Browse files
authored
Merge pull request github#5797 from hvitved/cpp/has-multi-scope-node-noinline
C++: Do not inline `Dominance::hasMultiScopeNode`
2 parents 3240536 + 058925c commit 0cb826a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/semmle/code/cpp/controlflow/Dominance.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import cpp
1414
* In rare cases, the same node is used in multiple control-flow scopes. This
1515
* confuses the dominance analysis, so this predicate is used to exclude them.
1616
*/
17+
pragma[noinline]
1718
private predicate hasMultiScopeNode(Function f) {
1819
exists(ControlFlowNode node |
1920
node.getControlFlowScope() = f and

0 commit comments

Comments
 (0)