From: Adrian Kuegel Date: Tue, 16 Nov 2021 10:17:33 +0000 (+0100) Subject: Fix unused variable warning. X-Git-Tag: upstream/15.0.7~25601 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a062e2a8ca27b615cf3d02ed5c551ca85efc0325;p=platform%2Fupstream%2Fllvm.git Fix unused variable warning. --- 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();