[cfe-commits] r60582 - /cfe/trunk/lib/AST/ExprConstant.cpp
Anders Carlsson
andersca at mac.com
Thu Dec 4 21:24:14 PST 2008
Author: andersca
Date: Thu Dec 4 23:24:13 2008
New Revision: 60582
URL: http://llvm.org/viewvc/llvm-project?rev=60582&view=rev
Log:
This wasn't such a good idea after all as it broke some tests.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=60582&r1=60581&r2=60582&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Thu Dec 4 23:24:13 2008
@@ -207,7 +207,6 @@
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 @@
return APValue();
}
+
APValue PointerExprEvaluator::VisitCastExpr(const CastExpr* E) {
const Expr* SubExpr = E->getSubExpr();
@@ -299,15 +299,6 @@
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))
More information about the cfe-commits
mailing list