From: Eli Friedman Date: Sat, 9 Aug 2008 22:21:56 +0000 (+0000) Subject: Turn on the new constant expression evaluator; it isn't X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb0ddc1baaee173ea0dccf2a4edef48638b902d;p=clang Turn on the new constant expression evaluator; it isn't anywhere near complete, but I don't know of any issues, and it can handle enough to allow removing the I-C-E pointer cast hack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54597 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index adc52e236c..e516beb0ac 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -21,7 +21,7 @@ using namespace clang; using llvm::APSInt; -#define USE_NEW_EVALUATOR 0 +#define USE_NEW_EVALUATOR 1 static bool CalcFakeICEVal(const Expr *Expr, llvm::APSInt &Result,