diff options
Diffstat (limited to 'compilerplugins/clang/returnconstant.cxx')
-rw-r--r-- | compilerplugins/clang/returnconstant.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/returnconstant.cxx b/compilerplugins/clang/returnconstant.cxx index a11cff3d11de..8040396ef6d0 100644 --- a/compilerplugins/clang/returnconstant.cxx +++ b/compilerplugins/clang/returnconstant.cxx @@ -186,7 +186,7 @@ std::string ReturnConstant::getExprValue(Expr const* arg) return "unknown"; } APSInt x1; - if (arg->EvaluateAsInt(x1, compiler.getASTContext())) + if (compat::EvaluateAsInt(arg, x1, compiler.getASTContext())) { return x1.toString(10); } |