summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-05-13 03:29:01 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-05-13 03:29:01 +0000
commite92006860d24000c7653852533e62d101902c7ee (patch)
tree807e4f1fc1f87877146de918636a1c0ebb3482a0 /clang/lib/Analysis
parent43bb6e23e52b513615052a4b0572256d21dece85 (diff)
downloadbcm5719-llvm-e92006860d24000c7653852533e62d101902c7ee.tar.gz
bcm5719-llvm-e92006860d24000c7653852533e62d101902c7ee.zip
Refactoring of constant expression evaluator
This introduces a generic base class for the expression evaluator classes, which handles a few common expression types which were previously handled separately in each class. Also, the expression evaluator now uses ConstStmtVisitor. llvm-svn: 131281
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/CFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 77c30dd9873..f1201913d0c 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -443,7 +443,7 @@ private:
return Result.Val.getInt().getBoolValue();
if (Result.Val.isLValue()) {
- Expr *e = Result.Val.getLValueBase();
+ const Expr *e = Result.Val.getLValueBase();
const CharUnits &c = Result.Val.getLValueOffset();
if (!e && c.isZero())
return false;
OpenPOWER on IntegriCloud