diff options
author | Dmitry Vassiliev <dvassiliev@accesssoftek.com> | 2022-07-27 00:21:57 +0200 |
---|---|---|
committer | Dmitry Vassiliev <dvassiliev@accesssoftek.com> | 2022-07-27 00:21:57 +0200 |
commit | e3e63f30a5dab85e715f7557d3a684e0f7d77090 (patch) | |
tree | 7a82c687fdd2549ce3cea8c67e589019ddfdde61 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 17d4796cc84618e9b15f9484e5576127c431bc60 (diff) | |
download | llvm-e3e63f30a5dab85e715f7557d3a684e0f7d77090.zip llvm-e3e63f30a5dab85e715f7557d3a684e0f7d77090.tar.gz llvm-e3e63f30a5dab85e715f7557d3a684e0f7d77090.tar.bz2 |
[CodeGen] Fixed ambiguous symbol ExtAddrMode in case of NDEBUG and LLVM_ENABLE_DUMP
This patch fixes the following error with MSVC 16.9.2 in case of NDEBUG and LLVM_ENABLE_DUMP:
llvm/lib/CodeGen/CodeGenPrepare.cpp(2581): error C2872: 'ExtAddrMode': ambiguous symbol
llvm/include/llvm/CodeGen/TargetInstrInfo.h(86): note: could be 'llvm::ExtAddrMode'
llvm/lib/CodeGen/CodeGenPrepare.cpp(2447): note: or '`anonymous-namespace'::ExtAddrMode'
llvm/lib/CodeGen/CodeGenPrepare.cpp(2581): error C2039: 'print': is not a member of 'llvm::ExtAddrMode'
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D130426
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index b6c762b..b8f6fc9 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2568,8 +2568,6 @@ struct ExtAddrMode : public TargetLowering::AddrMode { } }; -} // end anonymous namespace - #ifndef NDEBUG static inline raw_ostream &operator<<(raw_ostream &OS, const ExtAddrMode &AM) { AM.print(OS); @@ -2617,6 +2615,8 @@ LLVM_DUMP_METHOD void ExtAddrMode::dump() const { } #endif +} // end anonymous namespace + namespace { /// This class provides transaction based operation on the IR. |