mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
f362d3a729
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274148 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|