From b9c9c70157e7bc5b868437ab6bda2b21ba34c627 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Nov 2018 09:54:32 +0100 Subject: Revert "comment out the EvaluateAsInt compat code for now" This reverts commit da9fb5d6d9ebf9363981c370ce937d8848989fcb, obsoleted by "Re-commit r347417 'Re-Reinstate 347294 with a fix for the failures.'" --- compilerplugins/clang/compat.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compilerplugins/clang/compat.hxx') diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index 7a518770a3b6..97410fcbdc7a 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -157,8 +157,7 @@ inline bool CPlusPlus17(clang::LangOptions const & opts) { } inline bool EvaluateAsInt(clang::Expr const * expr, llvm::APSInt& intRes, const clang::ASTContext& ctx) { -// this keeps getting landed and then reverted in clang -#if 0 && CLANG_VERSION >= 80000 +#if CLANG_VERSION >= 80000 clang::Expr::EvalResult res; bool b = expr->EvaluateAsInt(res, ctx); if (b && res.Val.isInt()) -- cgit