diff options
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index e9a2693..39fc714 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -8468,10 +8468,11 @@ public: const FunctionDecl *Definition = nullptr; Stmt *Body = FD->getBody(Definition); + SourceLocation Loc = E->getExprLoc(); - if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition, Body) || - !HandleFunctionCall(E->getExprLoc(), Definition, This, E, Args, Call, - Body, Info, Result, ResultSlot)) + if (!CheckConstexprFunction(Info, Loc, FD, Definition, Body) || + !HandleFunctionCall(Loc, Definition, This, E, Args, Call, Body, Info, + Result, ResultSlot)) return false; if (!CovariantAdjustmentPath.empty() && |