C++: make IR BarrierGuard::checks match AST

This commit is contained in:
Robert Marsh
2020-07-14 15:44:03 -07:00
parent 7dd2677746
commit 0bb6d0c7ca
2 changed files with 10 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ import semmle.code.cpp.ir.IR
class TestBarrierGuard extends DataFlow::BarrierGuard {
TestBarrierGuard() { this.(CallInstruction).getStaticCallTarget().getName() = "guarded" }
override predicate checks(Instruction checked, boolean isTrue) {
override predicate checksInstr(Instruction checked, boolean isTrue) {
checked = this.(CallInstruction).getPositionalArgument(0) and
isTrue = true
}