[llvm] [NFC] Replace report_fatal_error with reportFatalUsageError in DXILIntrinsicExpansion.cpp (PR #139564)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 08:42:42 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-directx

Author: Deric C. (Icohedron)

<details>
<summary>Changes</summary>

Replaces the deprecated `report_fatal_error` function with `reportFatalUsageError`

---
Full diff: https://github.com/llvm/llvm-project/pull/139564.diff


1 Files Affected:

- (modified) llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp (+1-2) 


``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
index db310f5a2bacb..cff8d637dcb87 100644
--- a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
+++ b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
@@ -320,8 +320,7 @@ static Value *expandIsFPClass(CallInst *Orig) {
     return RetVal;
   }
   default:
-    report_fatal_error(Twine("Unsupported FPClassTest"),
-                       /* gen_crash_diag=*/false);
+    reportFatalUsageError("Unsupported FPClassTest");
   }
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list