[cfe-commits] r48377 - /cfe/trunk/Analysis/GRExprEngine.cpp
Ted Kremenek
kremenek at apple.com
Fri Mar 14 16:25:49 PDT 2008
Author: kremenek
Date: Fri Mar 14 18:25:49 2008
New Revision: 48377
URL: http://llvm.org/viewvc/llvm-project?rev=48377&view=rev
Log:
"panic" has 5 letters, not 4. Bug pointed out by Nuno Lopes!
Modified:
cfe/trunk/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=48377&r1=48376&r2=48377&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Fri Mar 14 18:25:49 2008
@@ -513,10 +513,14 @@
switch (n) {
default:
break;
+
case 4:
- if (!memcmp(s, "exit", 4) || !memcmp(s, "panic", 4)) {
- Builder->BuildSinks = true; break;
- }
+ if (!memcmp(s, "exit", 4)) Builder->BuildSinks = true;
+ break;
+
+ case 5:
+ if (!memcmp(s, "panic", 5)) Builder->BuildSinks = true;
+ break;
}
}
}
More information about the cfe-commits
mailing list