[PATCH] D90571: [compiler-rt] [ubsan] Use the itanium type info lookup for mingw targets
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 12:23:07 PST 2020
rnk added inline comments.
================
Comment at: compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:15
#include "ubsan_platform.h"
-#if CAN_SANITIZE_UB && !SANITIZER_WINDOWS
+#if CAN_SANITIZE_UB && (!SANITIZER_WINDOWS || defined(__MINGW32__))
#include "ubsan_type_hash.h"
----------------
Truly, MSVC is the odd duck: I would change the condition to `!defined(_MSC_VER)`, it will work for clang and msvc.
================
Comment at: compiler-rt/lib/ubsan/ubsan_type_hash_win.cpp:15
#include "ubsan_platform.h"
-#if CAN_SANITIZE_UB && SANITIZER_WINDOWS
+#if CAN_SANITIZE_UB && SANITIZER_WINDOWS && !defined(__MINGW32__)
#include "ubsan_type_hash.h"
----------------
Ditto, this could just be `defined(_MSC_VER)`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90571/new/
https://reviews.llvm.org/D90571
More information about the cfe-commits
mailing list