diff options
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r-- | clang/lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 871dc4bb77a..29d9a11de78 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -798,7 +798,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx, // reject it. if (CE->isBuiltinCall()) { APValue ResultAP; - if (CE->tryEvaluate(ResultAP, Ctx)) { + if (CE->Evaluate(ResultAP, Ctx)) { Result = ResultAP.getInt(); break; // It is a constant, expand it. } |