[llvm] [AMDGPU] Handled G_UBSANTRAP GlobalIsel (PR #134492)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 19:48:03 PDT 2025


================
@@ -7283,9 +7283,9 @@ SDValue SITargetLowering::lowerDEBUGTRAP(SDValue Op, SelectionDAG &DAG) const {
 
   if (!Subtarget->isTrapHandlerEnabled() ||
       Subtarget->getTrapHandlerAbi() != GCNSubtarget::TrapHandlerAbi::AMDHSA) {
-    DiagnosticInfoUnsupported NoTrap(MF.getFunction(),
-                                     "debugtrap handler not supported",
-                                     Op.getDebugLoc(), DS_Warning);
+    DiagnosticInfoUnsupported NoTrap(
+        MF.getFunction(), "debugtrap/ubsantrap handler not supported",
----------------
arsenm wrote:

We're apparently missing test coverage for this error. But probably should avoid using a / in an error string (and just ignore naming ubsan) 

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


More information about the llvm-commits mailing list