[PGO] Rename the profdata filename to avoid the conflict b/w tests.
[oota-llvm.git] / test / Transforms / Inline / basictest.ll
index 085694febc6a1cfad9cf24c052444aafea7110bb..8f0b3eafaecbff69d893221cc58598a90efcb4c0 100644 (file)
@@ -25,7 +25,7 @@ define internal %T* @test2f(i1 %cond, %T* %P) {
   br i1 %cond, label %T, label %F
   
 T:
-  %A = getelementptr %T* %P, i32 0, i32 0
+  %A = getelementptr %T, %T* %P, i32 0, i32 0
   store i32 42, i32* %A
   ret %T* %P
   
@@ -37,8 +37,8 @@ define i32 @test2(i1 %cond) {
   %A = alloca %T
   
   %B = call %T* @test2f(i1 %cond, %T* %A)
-  %C = getelementptr %T* %B, i32 0, i32 0
-  %D = load i32* %C
+  %C = getelementptr %T, %T* %B, i32 0, i32 0
+  %D = load i32, i32* %C
   ret i32 %D
   
 ; CHECK-LABEL: @test2(