[PATCH] D130426: [CodeGen] Fixed ambiguous symbol `ExtAddrMode` in case of NDEBUG and LLVM_ENABLE_DUMP
Dmitry Vassiliev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 23 11:09:05 PDT 2022
slydiman updated this revision to Diff 447092.
slydiman retitled this revision from "[CodeGen] Fixed ambiguous symbol `ExtAddrMode` in case of LLVM_ENABLE_DUMP" to "[CodeGen] Fixed ambiguous symbol `ExtAddrMode` in case of NDEBUG and LLVM_ENABLE_DUMP".
slydiman edited the summary of this revision.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130426/new/
https://reviews.llvm.org/D130426
Files:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Index: llvm/lib/CodeGen/CodeGenPrepare.cpp
===================================================================
--- llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -2577,7 +2577,7 @@
}
#endif
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+#if !defined(NDEBUG) && defined(LLVM_ENABLE_DUMP)
void ExtAddrMode::print(raw_ostream &OS) const {
bool NeedPlus = false;
OS << "[";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130426.447092.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220723/57e32474/attachment.bin>
More information about the llvm-commits
mailing list