mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
Add support for LLVM 17. (#4533)
This commit is contained in:
parent
fb637c408f
commit
91d306894e
36 changed files with 4309 additions and 73 deletions
|
@ -882,7 +882,12 @@ void defineParameters(IrFuncTy &irFty, VarDeclarations ¶meters) {
|
|||
if (irparam->arg->byref) {
|
||||
// The argument is an appropriate lvalue passed by reference.
|
||||
// Use the passed pointer as parameter storage.
|
||||
#if LDC_LLVM_VER >= 1700 // LLVM >= 17 uses opaque pointers, type check boils
|
||||
// down to pointer check only.
|
||||
assert(irparam->value->getType()->isPointerTy());
|
||||
#else
|
||||
assert(irparam->value->getType() == DtoPtrToType(paramType));
|
||||
#endif
|
||||
} else {
|
||||
// Let the ABI transform the parameter back to an lvalue.
|
||||
irparam->value =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue