aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-08-09 22:24:21 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-08-09 22:24:21 +0000
commit355aba8d7ca0a27a2870f5bdeacc9dcf873eef77 (patch)
treeae7e9b2989a5c3e5b8d139afcbf80ed2f96311cc
parent2eb0ddc1baaee173ea0dccf2a4edef48638b902d (diff)
Remove the ICE pointer cast hack; the issue this was working around is
now fixed in an alternate way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54598 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/Expr.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp
index 21f2b07d13..2f12c4e0b4 100644
--- a/lib/AST/Expr.cpp
+++ b/lib/AST/Expr.cpp
@@ -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;
}