diff options
author | Xiang1 Zhang <xiang1.zhang@intel.com> | 2023-03-08 15:00:02 +0800 |
---|---|---|
committer | Xiang1 Zhang <xiang1.zhang@intel.com> | 2023-03-08 15:01:28 +0800 |
commit | eed31bbb37215ad9d1388deb68b25535c8741cdb (patch) | |
tree | 2479532f52f0c4cf3b9860ed727587ec9f8324a1 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | b9337b108ec8fdfc716bbbb1184cbbd3b743e137 (diff) | |
download | llvm-eed31bbb37215ad9d1388deb68b25535c8741cdb.zip llvm-eed31bbb37215ad9d1388deb68b25535c8741cdb.tar.gz llvm-eed31bbb37215ad9d1388deb68b25535c8741cdb.tar.bz2 |
[NFC] Remove dead code in ExtAddrMode::print checked by coverty tool
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 54c71c1..0aa218a 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2687,7 +2687,7 @@ void ExtAddrMode::print(raw_ostream &OS) const { if (InBounds) OS << "inbounds "; if (BaseGV) { - OS << (NeedPlus ? " + " : "") << "GV:"; + OS << "GV:"; BaseGV->printAsOperand(OS, /*PrintType=*/false); NeedPlus = true; } |