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)
llvm-svn: 165867

llvm/lib/Transforms/Scalar/SROA.cpp

index 34c238e..7e206f0 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");