[PATCH] D90571: [compiler-rt] [ubsan] Use the itanium type info lookup for mingw targets

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 1 12:59:05 PST 2020


mstorsjo created this revision.
mstorsjo added a reviewer: rnk.
Herald added subscribers: Sanitizers, dberris.
Herald added a project: Sanitizers.
mstorsjo requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90571

Files:
  compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp
  compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp


Index: compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp
===================================================================
--- compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp
+++ compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp
@@ -12,7 +12,7 @@
 
 #include "sanitizer_common/sanitizer_platform.h"
 #include "ubsan_platform.h"
-#if CAN_SANITIZE_UB && SANITIZER_WINDOWS
+#if CAN_SANITIZE_UB && SANITIZER_WINDOWS && !defined(__MINGW32__)
 #include "ubsan_type_hash.h"
 
 #include "sanitizer_common/sanitizer_common.h"
Index: compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp
===================================================================
--- compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp
+++ compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp
@@ -12,7 +12,7 @@
 
 #include "sanitizer_common/sanitizer_platform.h"
 #include "ubsan_platform.h"
-#if CAN_SANITIZE_UB && !SANITIZER_WINDOWS
+#if CAN_SANITIZE_UB && (!SANITIZER_WINDOWS || defined(__MINGW32__))
 #include "ubsan_type_hash.h"
 
 #include "sanitizer_common/sanitizer_common.h"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90571.302171.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201101/172d3f6e/attachment.bin>


More information about the cfe-commits mailing list