From eed31bbb37215ad9d1388deb68b25535c8741cdb Mon Sep 17 00:00:00 2001 From: Xiang1 Zhang Date: Wed, 8 Mar 2023 15:00:02 +0800 Subject: [PATCH] [NFC] Remove dead code in ExtAddrMode::print checked by coverty tool --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4