OSDN Git Service

Fix a warning in release builds and a test case I forgot to update with
authorChandler Carruth <chandlerc@gmail.com>
Tue, 18 Sep 2012 13:02:06 +0000 (13:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 18 Sep 2012 13:02:06 +0000 (13:02 +0000)
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
test/Transforms/SROA/basictest.ll

index cdbd9f9..c33fbee 100644 (file)
@@ -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");
   }
 
index 95e4a78..63f64bb 100644 (file)
@@ -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: