[clang] [Sema][AArch64] Emit error for mismatched VLs on streaming mode transitions (PR #159131)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 19 09:08:47 PDT 2025


================
@@ -3768,12 +3770,31 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
       if (!IsCalleeStreamingCompatible &&
           (CallerFnType == SemaARM::ArmStreamingCompatible ||
            ((CallerFnType == SemaARM::ArmStreaming) ^ IsCalleeStreaming))) {
+        const LangOptions &LO = getLangOpts();
+        unsigned VL = LO.VScaleMin * 128;
+        unsigned SVL = LO.VScaleStreamingMin * 128;
+
----------------
sdesmalen-arm wrote:

nit: remove whitespace.

https://github.com/llvm/llvm-project/pull/159131


More information about the cfe-commits mailing list