[PATCH] D130426: [CodeGen] Fixed ambiguous symbol `ExtAddrMode` in case of NDEBUG
Dmitry Vassiliev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 23 09:33:13 PDT 2022
slydiman created this revision.
slydiman added reviewers: kazu, kovdan01, atrick.
slydiman added a project: LLVM.
Herald added a subscriber: hiraditya.
Herald added a project: All.
slydiman requested review of this revision.
Herald added a subscriber: llvm-commits.
This patch fixes the following error in case of NDEBUG:
llvm/lib/CodeGen/CodeGenPrepare.cpp(2562): error C2872: 'ExtAddrMode': ambiguous symbol
llvm/lib/CodeGen/CodeGenPrepare.cpp(2562): error C2039: 'print': is not a member of 'llvm::ExtAddrMode'
Repository:
rG LLVM Github Monorepo
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
@@ -2568,8 +2568,6 @@
}
};
-} // end anonymous namespace
-
#ifndef NDEBUG
static inline raw_ostream &operator<<(raw_ostream &OS, const ExtAddrMode &AM) {
AM.print(OS);
@@ -2617,6 +2615,8 @@
}
#endif
+} // end anonymous namespace
+
namespace {
/// This class provides transaction based operation on the IR.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130426.447079.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220723/304f6305/attachment.bin>
More information about the llvm-commits
mailing list