Verify that the resolver exists, that it is a defined Function, and that its return type matches the ifunc's type. Add corresponding check to BitcodeReader, change clang to emit the correct type, and fix tests to comply. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D112349
7 lines
153 B
LLVM
7 lines
153 B
LLVM
target datalayout = "e-p:64:64"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define i32 ()* @foo_resolver() {
|
|
ret i32 ()* inttoptr (i32 2 to i32 ()*)
|
|
}
|