mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
fe0a450fe1
This fixes pr28072. The point, as Duncan pointed out, is that the file is already partially linked by just reading it. Long term I think the solution is to make metadata owned by the module and then the linker will lazily read it and be in charge of all the linking. Running a verifier in each input will defeat the lazy loading, but will be legal. Right now we are at the unfortunate position that to support odr merging we cannot verify the inputs, which mildly annoying (see test update). llvm-svn: 274148
9 lines
240 B
LLVM
9 lines
240 B
LLVM
; RUN: not llvm-link -disable-debug-info-type-map -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: broken.ll: error: input module is broken!
|
|
define i32 @foo(i32 %v) {
|
|
%first = add i32 %v, %second
|
|
%second = add i32 %v, 3
|
|
ret i32 %first
|
|
}
|