@@ -815,7 +815,7 @@ bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
815
815
return true ;
816
816
}
817
817
818
- bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
818
+ static bool CheckInvoke (InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
819
819
if (!CheckLive (S, OpPC, Ptr, AK_MemberCall))
820
820
return false ;
821
821
if (!Ptr.isDummy ()) {
@@ -937,7 +937,7 @@ bool CheckCallable(InterpState &S, CodePtr OpPC, const Function *F) {
937
937
return false ;
938
938
}
939
939
940
- bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
940
+ static bool CheckCallDepth (InterpState &S, CodePtr OpPC) {
941
941
if ((S.Current ->getDepth () + 1 ) > S.getLangOpts ().ConstexprCallDepth ) {
942
942
S.FFDiag (S.Current ->getSource (OpPC),
943
943
diag::note_constexpr_depth_limit_exceeded)
@@ -1092,8 +1092,8 @@ bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
1092
1092
return false ;
1093
1093
}
1094
1094
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) {
1097
1097
auto Args = ArrayRef (CE->getArgs (), CE->getNumArgs ());
1098
1098
auto NonNullArgs = collectNonNullArgs (F->getDecl (), Args);
1099
1099
unsigned Offset = 0 ;
0 commit comments