================
@@ -4617,6 +4536,106 @@ void Sema::checkCall(NamedDecl *FDecl, const
FunctionProtoType *Proto,
Diag(Loc, diag::note_sme_use_preserves_za);
}
}
+
+ // Check if there's any conflicting call for every state, it should not be
+ // any conflict if caller and callee are in different state.
+
+ if (CallerFD &&
----------------
4vtomat wrote:
I think maybe it's possible to extract these as standalone function in
`SemaRISCV.cpp`.
https://github.com/llvm/llvm-project/pull/206260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits