@@ -815,7 +815,7 @@ bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
815815 return true ;
816816}
817817
818- bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
818+ static bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
819819 if (!CheckLive (S, OpPC, Ptr, AK_MemberCall))
820820 return false ;
821821 if (!Ptr.isDummy ()) {
@@ -937,7 +937,7 @@ bool CheckCallable(InterpState &S, CodePtr OpPC, const Function *F) {
937937 return false ;
938938}
939939
940- bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
940+ static bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
941941 if ((S.Current ->getDepth () + 1 ) > S.getLangOpts ().ConstexprCallDepth ) {
942942 S.FFDiag (S.Current ->getSource (OpPC),
943943 diag::note_constexpr_depth_limit_exceeded)
@@ -1092,8 +1092,8 @@ bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
10921092 return false ;
10931093}
10941094
1095- bool CheckNonNullArgs (InterpState &S, CodePtr OpPC, const Function *F,
1096- const CallExpr *CE, unsigned ArgSize) {
1095+ static bool CheckNonNullArgs (InterpState &S, CodePtr OpPC, const Function *F,
1096+ const CallExpr *CE, unsigned ArgSize) {
10971097 auto Args = ArrayRef (CE->getArgs (), CE->getNumArgs ());
10981098 auto NonNullArgs = collectNonNullArgs (F->getDecl (), Args);
10991099 unsigned Offset = 0 ;
0 commit comments