From a062e2a8ca27b615cf3d02ed5c551ca85efc0325 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Tue, 16 Nov 2021 11:17:33 +0100 Subject: [PATCH] Fix unused variable warning. --- llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp index b9464d5..a8d0a8c 100644 --- a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp +++ b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp @@ -397,9 +397,9 @@ bool LoadStoreOpt::doSingleStoreMerge(SmallVectorImpl &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(); -- 2.7.4