Skip to content

Commit 4712a8f

Browse files
committed
C++: pragma[nomagic] on bbStrictlyPostDominates
This predicate was recently added and is likely to get the same problems as `bbStrictlyDominates` with magic.
1 parent ace8fa8 commit 4712a8f

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
@@ -135,6 +135,7 @@ predicate bbStrictlyDominates(BasicBlock dominator, BasicBlock node) {
135135
* Holds if `postDominator` is a strict post-dominator of `node` in the control-flow
136136
* graph of basic blocks. Being strict means that `postDominator != node`.
137137
*/
138+
pragma[nomagic] // magic prevents fastTC
138139
predicate bbStrictlyPostDominates(BasicBlock postDominator, BasicBlock node) {
139140
bbIPostDominates+(postDominator, node)
140141
}

0 commit comments

Comments
 (0)