mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-16 10:26:23 +00:00

This patch resolves link errors when the address of a static function is taken, and that function is uninstrumented by DFSan. This change resolves bug 36314. Patch by Sam Kerner! Differential Revision: https://reviews.llvm.org/D44784 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328890 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
792 B
LLVM
25 lines
792 B
LLVM
; RUN: opt < %s -dfsan -dfsan-args-abi -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s
|
|
; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define internal i8 @uninstrumented_internal_fun(i8 %in) {
|
|
ret i8 %in
|
|
}
|
|
|
|
define i8 @call_uninstrumented_internal_fun(i8 %in) {
|
|
%call = call i8 @uninstrumented_internal_fun(i8 %in)
|
|
ret i8 %call
|
|
}
|
|
; CHECK: define internal {{(i8|{ i8, i16 })}} @"dfsw$uninstrumented_internal_fun"
|
|
|
|
define private i8 @uninstrumented_private_fun(i8 %in) {
|
|
ret i8 %in
|
|
}
|
|
|
|
define i8 @call_uninstrumented_private_fun(i8 %in) {
|
|
%call = call i8 @uninstrumented_private_fun(i8 %in)
|
|
ret i8 %call
|
|
}
|
|
; CHECK: define private {{(i8|{ i8, i16 })}} @"dfsw$uninstrumented_private_fun"
|