[compiler-rt] 32962f2 - [ubsan] Try to fix Windows
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 24 23:09:18 PST 2024
Author: Vitaly Buka
Date: 2024-12-24T23:08:20-08:00
New Revision: 32962f2b77c4298f9ef58182581edf56c76ac685
URL: https://github.com/llvm/llvm-project/commit/32962f2b77c4298f9ef58182581edf56c76ac685
DIFF: https://github.com/llvm/llvm-project/commit/32962f2b77c4298f9ef58182581edf56c76ac685.diff
LOG: [ubsan] Try to fix Windows
Added:
Modified:
compiler-rt/lib/ubsan/ubsan_handlers.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/ubsan/ubsan_handlers.cpp b/compiler-rt/lib/ubsan/ubsan_handlers.cpp
index ee9e3ccd0b1f61..63319f46734a48 100644
--- a/compiler-rt/lib/ubsan/ubsan_handlers.cpp
+++ b/compiler-rt/lib/ubsan/ubsan_handlers.cpp
@@ -908,14 +908,17 @@ extern "C" void __ubsan_handle_cfi_bad_type_default(CFICheckFailData *Data,
}
WIN_WEAK_ALIAS(__ubsan_handle_cfi_bad_type, __ubsan_handle_cfi_bad_type_default)
-#endif
+void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
+ bool ValidVtable, ReportOptions Opts);
+#else
SANITIZER_WEAK_ATTRIBUTE
void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
bool ValidVtable, ReportOptions Opts) {
Die();
}
+#endif
-} // namespace __ubsan
+} // namespace __ubsan
void __ubsan::__ubsan_handle_cfi_check_fail(CFICheckFailData *Data,
ValueHandle Value,
More information about the llvm-commits
mailing list