diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-05 05:24:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-05 05:24:13 +0000 |
commit | d407a7619904c81d38b41a9ee850de413105084b (patch) | |
tree | 72623acabd9feb8355e4383dee9d3b82a0c65250 /lib/AST/ExprConstant.cpp | |
parent | b3fee0f06422074f5c62144b727434562815c691 (diff) |
This wasn't such a good idea after all as it broke some tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 28440f40f5..9eeaa868a5 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -207,7 +207,6 @@ public: APValue VisitBinaryOperator(const BinaryOperator *E); APValue VisitCastExpr(const CastExpr* E); - APValue VisitCallExpr(CallExpr *E); APValue VisitUnaryOperator(const UnaryOperator *E); APValue VisitObjCStringLiteral(ObjCStringLiteral *E) { return APValue(E, 0); } @@ -267,6 +266,7 @@ APValue PointerExprEvaluator::VisitUnaryOperator(const UnaryOperator *E) { return APValue(); } + APValue PointerExprEvaluator::VisitCastExpr(const CastExpr* E) { const Expr* SubExpr = E->getSubExpr(); @@ -299,15 +299,6 @@ APValue PointerExprEvaluator::VisitCastExpr(const CastExpr* E) { return APValue(); } -APValue PointerExprEvaluator::VisitCallExpr(CallExpr *E) -{ - switch (E->isBuiltinCall()) { - default: return APValue(); - case Builtin::BI__builtin___CFStringMakeConstantString: - return APValue(E, 0); - } -} - APValue PointerExprEvaluator::VisitConditionalOperator(ConditionalOperator *E) { bool BoolResult; if (!HandleConversionToBool(E->getCond(), BoolResult, Info)) |