Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / CodeExtractor / 2004-03-18-InvokeHandling.ll
index ff5de6b73e210dd74986dcbc1913c1d261531a14..fd9814c545fc61090f8b9e87275704459109362b 100644 (file)
@@ -4,7 +4,7 @@ declare i32 @_IO_getc()
 
 declare void @__errno_location()
 
-define void @yylex() {
+define void @yylex() personality i32 (...)* @__gcc_personality_v0 {
 entry:
        switch i32 0, label %label.126 [
                 i32 0, label %return
@@ -190,7 +190,7 @@ return:             ; preds = %entry
        ret void
 
 LongJmpBlkPre:         ; preds = %endif.52, %then.40
-        %exn = landingpad { i8*, i32 } personality i32 (...)* @__gcc_personality_v0
+        %exn = landingpad { i8*, i32 }
                  catch i8* null
        ret void
 }