]> granicus.if.org Git - clang/commitdiff
Removed bogus "return true" in Expr::isConstantExpr that returned true for all
authorTed Kremenek <kremenek@apple.com>
Thu, 15 May 2008 21:49:04 +0000 (21:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 15 May 2008 21:49:04 +0000 (21:49 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51164 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index 45c6a8721f84ccdc8905ab8dcb8abffa262b0260..962819b733d70274fbecbf36da87b894cd0bfa58 100644 (file)
@@ -500,7 +500,6 @@ Expr *Expr::IgnoreParenCasts() {
 
 
 bool Expr::isConstantExpr(ASTContext &Ctx, SourceLocation *Loc) const {
-  return true;
   switch (getStmtClass()) {
   default:
     if (Loc) *Loc = getLocStart();