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 | 98463cd44d334e67e03e863f7495837c0ba69e23 (patch) | |
| tree | e3b2ad5db0e623169f5dbf198e5ea8ba82aeace4 /clang/lib/AST/ExprConstant.cpp | |
| parent | 3bc1d7d3d30d28cf3062a462bf1b160094fcecb3 (diff) | |
| download | bcm5719-llvm-98463cd44d334e67e03e863f7495837c0ba69e23.tar.gz bcm5719-llvm-98463cd44d334e67e03e863f7495837c0ba69e23.zip | |
This wasn't such a good idea after all as it broke some tests.
llvm-svn: 60582
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
| -rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 28440f40f51..9eeaa868a59 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/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)) |

