Skip to content

Conversation

@Icohedron
Copy link
Contributor

Replaces the deprecated report_fatal_error function with reportFatalUsageError

@llvmbot
Copy link
Member

llvmbot commented May 12, 2025

@llvm/pr-subscribers-backend-directx

Author: Deric C. (Icohedron)

Changes

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

@Icohedron Icohedron merged commit 96dfd1e into llvm:main May 12, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants