From 9e3f63957955461fce1f383b12eb70605a361f6f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 18 Sep 2012 13:02:06 +0000 Subject: [PATCH] Fix a warning in release builds and a test case I forgot to update with a fix to getCommonType in the previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164120 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SROA.cpp | 1 + test/Transforms/SROA/basictest.ll | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index cdbd9f9f233..c33fbee6f44 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -2572,6 +2572,7 @@ private: Value *Store = IRB.CreateStore( IRB.CreateExtractValue(Agg, Indices, Name + ".extract"), IRB.CreateInBoundsGEP(Ptr, GEPIndices, Name + ".gep")); + (void)Store; DEBUG(dbgs() << " to: " << *Store << "\n"); } diff --git a/test/Transforms/SROA/basictest.ll b/test/Transforms/SROA/basictest.ll index 95e4a78443d..63f64bbd208 100644 --- a/test/Transforms/SROA/basictest.ll +++ b/test/Transforms/SROA/basictest.ll @@ -408,7 +408,7 @@ declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind define i16 @test5() { ; CHECK: @test5 -; CHECK: alloca float +; CHECK: alloca i32 ; CHECK: ret i16 % entry: -- 2.34.1