mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
6dc628ff61
This is probably correct for all uses except cross-module IR linking, where we need to move the comdat from the source module to the destination module. Fixes PR27870. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D20631 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270743 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
237 B
LLVM
15 lines
237 B
LLVM
; RUN: opt -S < %s -deadargelim | FileCheck %s
|
|
|
|
$f = comdat any
|
|
|
|
define void @f() comdat {
|
|
call void @g(i32 0)
|
|
ret void
|
|
}
|
|
|
|
define internal void @g(i32 %dead) comdat($f) {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define internal void @g() comdat($f) {
|