Add addrspacecast instruction.
[oota-llvm.git] / test / Transforms / InstCombine / gep-addrspace.ll
index dfe12dbfaf7f43f78534f5570fc4626ddcf8ad2b..24c355d817e5d0161fd9b207670543520dd0418b 100644 (file)
@@ -9,7 +9,7 @@ target triple = "x86_64-pc-win32"
 define void @func(%myStruct addrspace(1)* nocapture %p) nounwind {
 ST:
   %A = getelementptr inbounds %myStruct addrspace(1)* %p, i64 0
-  %B = bitcast %myStruct addrspace(1)* %A to %myStruct*
+  %B = addrspacecast %myStruct addrspace(1)* %A to %myStruct*
   %C = getelementptr inbounds %myStruct* %B, i32 0, i32 1
   %D = getelementptr inbounds [3 x float]* %C, i32 0, i32 2
   %E = load float* %D, align 4