2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -lowersetjmp -disable-output
|
2003-11-05 22:06:03 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
%struct.jmpenv = type { i32, i8 }
|
2003-11-05 22:06:03 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
declare void @Perl_sv_setpv()
|
2003-11-05 22:06:03 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
declare i32 @llvm.setjmp(i32*)
|
|
|
|
|
|
|
|
define void @perl_call_sv() {
|
|
|
|
call void @Perl_sv_setpv( )
|
|
|
|
%tmp.335 = getelementptr %struct.jmpenv* null, i64 0, i32 0 ; <i32*> [#uses=1]
|
|
|
|
%tmp.336 = call i32 @llvm.setjmp( i32* null ) ; <i32> [#uses=1]
|
|
|
|
store i32 %tmp.336, i32* %tmp.335
|
2003-11-05 22:06:03 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|