mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
31bb5b2278
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 llvm-svn: 270743
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) {
|