diff --git a/clang/lib/AST/Interp/InterpBuiltin.cpp b/clang/lib/AST/Interp/InterpBuiltin.cpp index dbefcbf961dd2..e161a0681dcfa 100644 --- a/clang/lib/AST/Interp/InterpBuiltin.cpp +++ b/clang/lib/AST/Interp/InterpBuiltin.cpp @@ -13,7 +13,8 @@ namespace clang { namespace interp { -template T getParam(const InterpFrame *Frame, unsigned Index) { +template +static T getParam(const InterpFrame *Frame, unsigned Index) { unsigned Offset = Frame->getFunction()->getParamOffset(Index); return Frame->getParam(Offset); }