[llvm] [AArch64][SME] Use reportFatalUsageError rather than assert (NFC) (PR #145491)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 03:13:15 PDT 2025


================
@@ -481,7 +481,8 @@ AArch64TargetMachine::getSubtargetImpl(const Function &F) const {
         MaxSVEVectorSize, IsStreaming, IsStreamingCompatible, HasMinSize);
   }
 
-  assert((!IsStreaming || I->hasSME()) && "Expected SME to be available");
+  if (IsStreaming && !I->hasSME())
+    reportFatalUsageError("Streaming SVE functions require SME");
----------------
arsenm wrote:

```suggestion
    reportFatalUsageError("streaming SVE functions require SME");
```

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


More information about the llvm-commits mailing list