summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-15 21:49:04 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-15 21:49:04 +0000
commit98b730d5bbbbe377bf9aa1579f41f34042cacab3 (patch)
tree9c69f8c51abb123ef303e1e0452b54ff1557423e /clang/lib/AST/Expr.cpp
parentad91868aa60740bd834a1c98a7f2440bd06fde1b (diff)
downloadbcm5719-llvm-98b730d5bbbbe377bf9aa1579f41f34042cacab3.tar.gz
bcm5719-llvm-98b730d5bbbbe377bf9aa1579f41f34042cacab3.zip
Removed bogus "return true" in Expr::isConstantExpr that returned true for all
expressions. This appears to be a regression introduced in r51113 that caused many test cases to fail (there is still a test case in the Analysis directory that is failing): http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html llvm-svn: 51164
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 45c6a8721f8..962819b733d 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -500,7 +500,6 @@ Expr *Expr::IgnoreParenCasts() {
bool Expr::isConstantExpr(ASTContext &Ctx, SourceLocation *Loc) const {
- return true;
switch (getStmtClass()) {
default:
if (Loc) *Loc = getLocStart();
OpenPOWER on IntegriCloud