Prepare call/invoke for opaque pointers
Rather than relying on `getPointerElementType()` from LLVM function pointers, we now pass the function type explicitly when building `call` or `invoke` instructions.
This commit is contained in:
@@ -464,7 +464,7 @@ fn inline_asm_call(
|
||||
alignstack,
|
||||
llvm::AsmDialect::from_generic(dia),
|
||||
);
|
||||
let call = bx.call(v, inputs, None);
|
||||
let call = bx.call(fty, v, inputs, None);
|
||||
|
||||
// Store mark in a metadata node so we can map LLVM errors
|
||||
// back to source locations. See #17552.
|
||||
|
||||
Reference in New Issue
Block a user