mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Linker: Do not expect comdat to exist in source module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240341 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
864619a387
commit
c2433959db
@ -1573,8 +1573,8 @@ bool ModuleLinker::run() {
|
||||
if (C.getSelectionKind() == Comdat::Any)
|
||||
continue;
|
||||
const GlobalValue *GV = SrcM->getNamedValue(C.getName());
|
||||
assert(GV);
|
||||
MapValue(GV, ValueMap, RF_None, &TypeMap, &ValMaterializer);
|
||||
if (GV)
|
||||
MapValue(GV, ValueMap, RF_None, &TypeMap, &ValMaterializer);
|
||||
}
|
||||
|
||||
// Strip replaced subprograms before mapping any metadata -- so that we're
|
||||
|
6
test/Linker/comdat10.ll
Normal file
6
test/Linker/comdat10.ll
Normal file
@ -0,0 +1,6 @@
|
||||
; RUN: llvm-link %s /dev/null -S -o - | FileCheck %s
|
||||
|
||||
$c = comdat largest
|
||||
|
||||
; CHECK: @c = global i32 0, comdat
|
||||
@c = global i32 0, comdat
|
Loading…
x
Reference in New Issue
Block a user