[PATCH] D134839: [lld][COFF][LTO] Don't disable verifier in assert builds
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 15:58:34 PDT 2022
aeubanks created this revision.
aeubanks added reviewers: hans, rnk.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
We should catch more issues this way.
This previously the behavior and was dropped in cde5e5b600b06.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134839
Files:
lld/COFF/LTO.cpp
Index: lld/COFF/LTO.cpp
===================================================================
--- lld/COFF/LTO.cpp
+++ lld/COFF/LTO.cpp
@@ -76,7 +76,11 @@
c.RelocModel = Reloc::Static;
else
c.RelocModel = Reloc::PIC_;
+#ifndef NDEBUG
+ c.DisableVerify = false;
+#else
c.DisableVerify = true;
+#endif
c.DiagHandler = diagnosticHandler;
c.OptLevel = config->ltoo;
c.CPU = getCPUStr();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134839.463701.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220928/2ef5a1ce/attachment.bin>
More information about the llvm-commits
mailing list