[llvm] eed31bb - [NFC] Remove dead code in ExtAddrMode::print checked by coverty tool
Xiang1 Zhang via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 23:03:12 PST 2023
Author: Xiang1 Zhang
Date: 2023-03-08T15:01:28+08:00
New Revision: eed31bbb37215ad9d1388deb68b25535c8741cdb
URL: https://github.com/llvm/llvm-project/commit/eed31bbb37215ad9d1388deb68b25535c8741cdb
DIFF: https://github.com/llvm/llvm-project/commit/eed31bbb37215ad9d1388deb68b25535c8741cdb.diff
LOG: [NFC] Remove dead code in ExtAddrMode::print checked by coverty tool
Added:
Modified:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 54c71c1e39461..0aa218a78f129 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;
}
More information about the llvm-commits
mailing list