Revert "X86: Reject register operands with obvious type mismatches."
[oota-llvm.git] / test / CodeGen / X86 / catch.ll
index 6f7021360e1f6704f3a6cf6a686a1b1554730503..be7466e8abbb3a6b4bf3b805ac208f1c7585ddcd 100644 (file)
@@ -7,14 +7,14 @@
 ; CHECK-NEXT: .quad   .Lstr
 
 @str = private unnamed_addr constant [12 x i8] c"NSException\00"
-define void @f() {
+define void @f() personality i8* bitcast (void ()* @h to i8*) {
   invoke void @g()
           to label %invoke.cont unwind label %lpad
 invoke.cont:
   ret void
 lpad:
-  %tmp14 = landingpad { i8*, i32 } personality i8* bitcast (void ()* @h to i8*)
-           catch i8* getelementptr inbounds ([12 x i8]* @str, i64 0, i64 0)
+  %tmp14 = landingpad { i8*, i32 }
+           catch i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0)
   ret void
 }
 declare void @g()