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:
parent
61a941b8ba
commit
183d79cc09
15 changed files with 168 additions and 151 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue