[compiler-rt] [compiler-rt] Enable ubsan_minimal runtime for SPIR-V (PR #196149)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 12:48:54 PDT 2026


================
@@ -151,6 +157,19 @@ static void abort_with_message(const char *kind, uintptr_t caller) {
 static void abort_with_message(const char *kind, uintptr_t caller) {
   __builtin_verbose_trap("ubsan", "unrecoverable error");
 }
+#elif SANITIZER_SPIRV
+struct __ubsan_abort_info_t {
----------------
vitalybuka wrote:

I don't have idea how this better to be done there, but if you extract trap->__spirv_AbortKHR into a separate PR where you can discuss it further, I am happy to approve the rest here. 

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


More information about the llvm-commits mailing list