mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
b787681e80
The effect of the bug was that we would incorrectly create summaries for global and weak values defined in module asm (since we were essentially testing for bit 1 which is SF_Undefined, and the RecordStreamer ignores local undefined references). This would have resulted in conservatively disabling importing of anything referencing globals and weaks defined in module asm. Added these cases to the test which now fails without this bug fix. Fixes PR31459. llvm-svn: 290610
17 lines
466 B
LLVM
17 lines
466 B
LLVM
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define i32 @main({ i64, { i64, i8* }* } %unnamed) #0 {
|
|
%1 = call i32 @func1() #1
|
|
%2 = call i32 @func2() #1
|
|
%3 = call i32 @func3() #1
|
|
%4 = call i32 @callglobalfunc() #1
|
|
%5 = call i32 @callweakfunc() #1
|
|
ret i32 %1
|
|
}
|
|
declare i32 @func1() #1
|
|
declare i32 @func2() #1
|
|
declare i32 @func3() #1
|
|
declare i32 @callglobalfunc() #1
|
|
declare i32 @callweakfunc() #1
|