mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
Object: Downgrade invalid weak externals from an assert fail to an llvm::Error when creating an irsymtab.
This fixes bitcode emission for modules containing invalid weak externals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
; REQUIRES: x86-registered-target
|
||||
; RUN: opt -o %t %s
|
||||
; RUN: not llvm-lto2 dump-symtab %t 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
@bar = global i32 0
|
||||
|
||||
; CHECK: Invalid weak external
|
||||
@foo = weak alias i32, i32* getelementptr (i32, i32* @bar, i32 1)
|
||||
Reference in New Issue
Block a user