Fix unused variable warning in LoadStoreOpt.cpp with (void)

This commit is contained in:
Frederik Gossen 2021-11-16 12:03:59 +01:00
parent 2bceb7c8da
commit 3f3d4e8a15
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@ bool LoadStoreOpt::doSingleStoreMerge(SmallVectorImpl<GStore *> &Stores) {
WideReg = Builder.buildConstant(WideValueTy, WideConst).getReg(0);
auto NewStore =
Builder.buildStore(WideReg, FirstStore->getPointerReg(), *WideMMO);
(void) NewStore;
LLVM_DEBUG(dbgs() << "Created merged store: " << *NewStore);
NumStoresMerged += Stores.size();