diff --git a/clang/lib/AST/Interp/Interp.h b/clang/lib/AST/Interp/Interp.h index dbe8b3889849c..f179c0486bdbd 100644 --- a/clang/lib/AST/Interp/Interp.h +++ b/clang/lib/AST/Interp/Interp.h @@ -1700,7 +1700,7 @@ inline bool CallPtr(InterpState &S, CodePtr OpPC) { return Call(S, OpPC, F); } -inline bool GetFnPtr(InterpState &S, CodePtr &PC, const Function *Func) { +inline bool GetFnPtr(InterpState &S, CodePtr OpPC, const Function *Func) { assert(Func); S.Stk.push(Func); return true;