diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-07 10:06:03 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-07 10:06:03 +0000 |
commit | bb316c5b561a2d8a31ead6800e05ca923a255cb8 (patch) | |
tree | af4bd5dc71e6f5bdacdd3f408987e099482d7261 /lib/Analysis/GRExprEngine.cpp | |
parent | bc678fdf614d2b66a4358f14a0a072f31b559c5c (diff) |
Added a function call case that generates sink nodes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 1c3a170a56..a6b501372f 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1131,6 +1131,12 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred, case 5: if (!memcmp(s, "panic", 5)) Builder->BuildSinks = true; + else if (!memcmp(s, "error", 5)) { + Expr* Arg = *CE->arg_begin(); + if (IntegerLiteral* IL = dyn_cast<IntegerLiteral>(Arg)) + if (IL->getValue() != 0) + Builder->BuildSinks = true; + } break; case 6: |