mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
75b432e448
If args is empty then accesing element 0 is illegal. https://reviews.llvm.org/D53556 Patch by Eugene Sharygin. Thanks Eugene! llvm-svn: 347281
11 lines
169 B
LLVM
11 lines
169 B
LLVM
; RUN: %lli -force-interpreter %s
|
|
|
|
declare void @exit(i32)
|
|
declare i32 @rand()
|
|
|
|
define i32 @main() {
|
|
%ret = call i32 @rand()
|
|
call void @exit(i32 0)
|
|
ret i32 %ret
|
|
}
|