diff --git a/clang/lib/AST/Interp/InterpBuiltin.cpp b/clang/lib/AST/Interp/InterpBuiltin.cpp index 0d0859a4cd284b..dbefcbf961dd28 100644 --- a/clang/lib/AST/Interp/InterpBuiltin.cpp +++ b/clang/lib/AST/Interp/InterpBuiltin.cpp @@ -13,13 +13,13 @@ namespace clang { namespace interp { -template T getParam(InterpFrame *Frame, unsigned Index) { +template T getParam(const InterpFrame *Frame, unsigned Index) { unsigned Offset = Frame->getFunction()->getParamOffset(Index); return Frame->getParam(Offset); } static bool interp__builtin_strcmp(InterpState &S, CodePtr OpPC, - InterpFrame *Frame) { + const InterpFrame *Frame) { const Pointer &A = getParam(Frame, 0); const Pointer &B = getParam(Frame, 1);