aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-18 13:02:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-18 13:02:06 +0000
commit9e3f63957955461fce1f383b12eb70605a361f6f (patch)
tree83d7f01c5783dac72ee3cea9537eb3318cdeefce
parentc370acdf9698b7eee11f3d8e3732f1d72cd25943 (diff)
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
-rw-r--r--lib/Transforms/Scalar/SROA.cpp1
-rw-r--r--test/Transforms/SROA/basictest.ll2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp
index cdbd9f9f23..c33fbee6f4 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 95e4a78443..63f64bbd20 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: