[llvm] [RISCV][NFC] Replace reportError wrappers with direct reportFatalUsageError calls (PR #148142)

Yu-Hui Wu via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 12 01:38:17 PDT 2025


================
@@ -97,15 +88,15 @@ ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
   if ((TargetABI == RISCVABI::ABI::ABI_ILP32E ||
        (TargetABI == ABI_Unknown && IsRVE && !IsRV64)) &&
       FeatureBits[RISCV::FeatureStdExtD])
-    reportError("ILP32E cannot be used with the D ISA extension");
+    reportFatalUsageError("ILP32E cannot be used with the D ISA extension");
 
   if (TargetABI != ABI_Unknown)
     return TargetABI;
 
   // If no explicit ABI is given, try to compute the default ABI.
   auto ISAInfo = RISCVFeatures::parseFeatureBits(IsRV64, FeatureBits);
   if (!ISAInfo)
-    reportError(ISAInfo.takeError());
+    reportFatalUsageError(std::move(ISAInfo.takeError()));
----------------
nosba0957 wrote:

Thanks for pointing that out, I've made the change.

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


More information about the llvm-commits mailing list