aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorXiang1 Zhang <xiang1.zhang@intel.com>2023-03-08 15:00:02 +0800
committerXiang1 Zhang <xiang1.zhang@intel.com>2023-03-08 15:01:28 +0800
commiteed31bbb37215ad9d1388deb68b25535c8741cdb (patch)
tree2479532f52f0c4cf3b9860ed727587ec9f8324a1 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parentb9337b108ec8fdfc716bbbb1184cbbd3b743e137 (diff)
downloadllvm-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.cpp2
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;
}