@@ -814,7 +814,7 @@ bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
814814 return true ;
815815}
816816
817- bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
817+ static bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
818818 if (!CheckLive (S, OpPC, Ptr, AK_MemberCall))
819819 return false ;
820820 if (!Ptr.isDummy ()) {
@@ -936,7 +936,7 @@ bool CheckCallable(InterpState &S, CodePtr OpPC, const Function *F) {
936936 return false ;
937937}
938938
939- bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
939+ static bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
940940 if ((S.Current ->getDepth () + 1 ) > S.getLangOpts ().ConstexprCallDepth ) {
941941 S.FFDiag (S.Current ->getSource (OpPC),
942942 diag::note_constexpr_depth_limit_exceeded)
@@ -1091,8 +1091,8 @@ bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
10911091 return false ;
10921092}
10931093
1094- bool CheckNonNullArgs (InterpState &S, CodePtr OpPC, const Function *F,
1095- const CallExpr *CE, unsigned ArgSize) {
1094+ static bool CheckNonNullArgs (InterpState &S, CodePtr OpPC, const Function *F,
1095+ const CallExpr *CE, unsigned ArgSize) {
10961096 auto Args = ArrayRef (CE->getArgs (), CE->getNumArgs ());
10971097 auto NonNullArgs = collectNonNullArgs (F->getDecl (), Args);
10981098 unsigned Offset = 0 ;
0 commit comments