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

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


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

Replaces the deprecated `report_fatal_error` function with `reportFatalUsageError`

>From 78e10c97f0809c73f19650213a08bf540c076790 Mon Sep 17 00:00:00 2001
From: Icohedron <cheung.deric at gmail.com>
Date: Mon, 12 May 2025 15:39:51 +0000
Subject: [PATCH] Replace report_fatal_error with reportFatalUsageError

---
 llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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");
   }
 }
 



More information about the llvm-commits mailing list