Silence a warning in -assert builds.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 13 Oct 2012 05:09:27 +0000 (05:09 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 13 Oct 2012 05:09:27 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index 34c238ed1541f4f78d15224fdf4404ee6b1d4695..7e206f0bcec77033a619e5d55f064015f0b3c291 100644 (file)
@@ -2490,6 +2490,7 @@ private:
       Value *NewV = convertValue(IRB, SI.getValueOperand(), NewAllocaTy);
       StoreInst *NewSI = IRB.CreateAlignedStore(NewV, &NewAI, NewAI.getAlignment(),
                                                 SI.isVolatile());
+      (void)NewSI;
       Pass.DeadInsts.push_back(&SI);
 
       DEBUG(dbgs() << "          to: " << *NewSI << "\n");