]> granicus.if.org Git - clang/commitdiff
Remove the ICE pointer cast hack; the issue this was working around is
authorEli Friedman <eli.friedman@gmail.com>
Sat, 9 Aug 2008 22:24:21 +0000 (22:24 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 9 Aug 2008 22:24:21 +0000 (22:24 +0000)
now fixed in an alternate way.

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

lib/AST/Expr.cpp

index 21f2b07d132ff698522d04301adeea2a50fef99c..2f12c4e0b4b64b1c8ce2ec26d2c677d76a49e34d 100644 (file)
@@ -955,11 +955,6 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
     if (!SubExpr->getType()->isArithmeticType() ||
         !getType()->isIntegerType()) {
       if (Loc) *Loc = SubExpr->getLocStart();
-      // GCC accepts pointers as an extension.
-      // FIXME: check getLangOptions().NoExtensions. At the moment, it doesn't
-      // appear possible to get langOptions() from the Expr.
-      if (SubExpr->getType()->isPointerType()) // && !NoExtensions
-        return true;
       return false;
     }