Fix a bunch of incorrect assert

This commit is contained in:
Alexey Prokhin
2011-02-25 22:29:34 +03:00
parent 28aa0e2bf3
commit 53fe662957
2 changed files with 6 additions and 6 deletions

View File

@@ -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;