r218958 - Revert useless part of r217349

Hal Finkel hfinkel at anl.gov
Thu Oct 2 21:46:46 PDT 2014


Author: hfinkel
Date: Thu Oct  2 23:46:46 2014
New Revision: 218958

URL: http://llvm.org/viewvc/llvm-project?rev=218958&view=rev
Log:
Revert useless part of r217349

Adding handling of __builtin_assume_aligned to IntExprEvaluator does not make
sense because __builtin_assume_aligned returns a pointer (not an integer).
Thanks to Richard for figuring out why this was not doing anything.

I'll add this back in a better place (PointerExprEvaluator perhaps).

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=218958&r1=218957&r2=218958&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Thu Oct  2 23:46:46 2014
@@ -6170,7 +6170,6 @@ bool IntExprEvaluator::VisitCallExpr(con
     return Success(Operand, E);
   }
 
-  case Builtin::BI__builtin_assume_aligned:
   case Builtin::BI__builtin_expect:
     return Visit(E->getArg(0));
 





More information about the cfe-commits mailing list