[InstCombine] Don't miscompile select to poison
[oota-llvm.git] / test / Transforms / InstCombine / 2009-12-17-CmpSelectNull.ll
index b7101b1c2f4532b0d202f10bfe8bd1669fa7c911..c438ca5fd17212152ab71e2c29e17c782ba04a48 100644 (file)
@@ -6,7 +6,7 @@
 define i8* @demangle_qualified(i32 %isfuncname) nounwind {
 entry:
   %tobool272 = icmp ne i32 %isfuncname, 0
-  %cond276 = select i1 %tobool272, i8* getelementptr inbounds ([2 x i8]* @.str254, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8]* @.str557, i32 0, i32 0) ; <i8*> [#uses=4]
+  %cond276 = select i1 %tobool272, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str254, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str557, i32 0, i32 0) ; <i8*> [#uses=4]
   %cmp.i504 = icmp eq i8* %cond276, null
   %rval = getelementptr i8, i8* %cond276, i1 %cmp.i504
   ret i8* %rval