[llvm] a062e2a - Fix unused variable warning.

Adrian Kuegel via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 16 02:18:25 PST 2021


Author: Adrian Kuegel
Date: 2021-11-16T11:17:33+01:00
New Revision: a062e2a8ca27b615cf3d02ed5c551ca85efc0325

URL: https://github.com/llvm/llvm-project/commit/a062e2a8ca27b615cf3d02ed5c551ca85efc0325
DIFF: https://github.com/llvm/llvm-project/commit/a062e2a8ca27b615cf3d02ed5c551ca85efc0325.diff

LOG: Fix unused variable warning.

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
index b9464d52b919..a8d0a8c4d82f 100644
--- a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
@@ -397,9 +397,9 @@ bool LoadStoreOpt::doSingleStoreMerge(SmallVectorImpl<GStore *> &Stores) {
   }
   WideReg = Builder.buildConstant(WideValueTy, WideConst).getReg(0);
   LLVM_DEBUG({
-    auto NewStore =
-        Builder.buildStore(WideReg, FirstStore->getPointerReg(), *WideMMO);
-    dbgs() << "Created merged store: " << *NewStore;
+    dbgs() << "Created merged store: "
+           << *Builder.buildStore(WideReg, FirstStore->getPointerReg(),
+                                  *WideMMO);
   });
   NumStoresMerged += Stores.size();
 


        


More information about the llvm-commits mailing list