From c2fcf1a67126a079e34f04bd09a50ae85fdd9469 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 13 Oct 2012 05:09:27 +0000 Subject: [PATCH] Silence a warning in -assert builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165867 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SROA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 34c238ed154..7e206f0bcec 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -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"); -- 2.34.1