Avoid passing addrspacecast to lifetime intrinsics
Since LLVM 22 the alloca must be passed directly. Do this by stripping the addrspacecast if it exists.
This commit is contained in:
parent
bf3ac98d69
commit
0be66603ac
4 changed files with 18 additions and 1 deletions
|
|
@ -1760,6 +1760,10 @@ extern "C" bool LLVMRustIsNonGVFunctionPointerTy(LLVMValueRef V) {
|
|||
return false;
|
||||
}
|
||||
|
||||
extern "C" LLVMValueRef LLVMRustStripPointerCasts(LLVMValueRef V) {
|
||||
return wrap(unwrap(V)->stripPointerCasts());
|
||||
}
|
||||
|
||||
extern "C" bool LLVMRustLLVMHasZlibCompression() {
|
||||
return llvm::compression::zlib::isAvailable();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue