Merge pull request #3962 from rdmarsh2/ir-barrierguard-checks-expr

C++: make IR BarrierGuard::checks match AST
This commit is contained in:
Mathias Vorreiter Pedersen
2020-07-23 09:21:37 +02:00
committed by GitHub
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
}