[cfe-commits] r57240 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Oct 7 03:06:04 PDT 2008
Author: zhongxingxu
Date: Tue Oct 7 05:06:03 2008
New Revision: 57240
URL: http://llvm.org/viewvc/llvm-project?rev=57240&view=rev
Log:
Added a function call case that generates sink nodes.
Modified:
cfe/trunk/lib/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=57240&r1=57239&r2=57240&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Tue Oct 7 05:06:03 2008
@@ -1131,6 +1131,12 @@
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:
More information about the cfe-commits
mailing list