summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit5ce8cc7554b0c095378605ce34487dd3b99ae9d9 (patch)
tree7f92695cc31077b666040c002ea812a73bace4fe /clang/lib
parent5cf85cc9772befee3f8b9420cdc2583dbec3f97c (diff)
downloadbcm5719-llvm-5ce8cc7554b0c095378605ce34487dd3b99ae9d9.tar.gz
bcm5719-llvm-5ce8cc7554b0c095378605ce34487dd3b99ae9d9.zip
Remove the ICE pointer cast hack; the issue this was working around is
now fixed in an alternate way. llvm-svn: 54598
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Expr.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 21f2b07d132..2f12c4e0b4b 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud