mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-03 17:01:29 +02:00
Fix a bunch of incorrect assert
This commit is contained in:
@@ -652,8 +652,8 @@ bool X86_64TargetABI::passByVal(Type* t) {
|
||||
// Structs passed or returned in registers are passed here
|
||||
// to get their padding removed (if necessary).
|
||||
void X86_64TargetABI::fixup_D(IrFuncTyArg& arg) {
|
||||
assert(arg.type->ty == Tstruct);
|
||||
LLType* abiTy = DtoUnpaddedStructType(arg.type);
|
||||
assert(arg.type->toBasetype()->ty == Tstruct);
|
||||
LLType* abiTy = DtoUnpaddedStructType(arg.type->toBasetype());
|
||||
|
||||
if (abiTy && abiTy != arg.ltype) {
|
||||
arg.ltype = abiTy;
|
||||
|
||||
Reference in New Issue
Block a user