2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2008-07-31 02:36:51 +08:00
|
|
|
; PR2612
|
|
|
|
|
|
|
|
@current_foo = internal global { } zeroinitializer
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
entry:
|
|
|
|
%retval = alloca i32
|
|
|
|
store i32 0, i32* %retval
|
|
|
|
%local_foo = alloca { }
|
2015-02-28 05:17:42 +08:00
|
|
|
load { }, { }* @current_foo
|
2008-07-31 02:36:51 +08:00
|
|
|
store { } %0, { }* %local_foo
|
|
|
|
br label %return
|
|
|
|
|
|
|
|
return:
|
2015-02-28 05:17:42 +08:00
|
|
|
load i32, i32* %retval
|
2008-07-31 02:36:51 +08:00
|
|
|
ret i32 %1
|
|
|
|
}
|