diff --git a/gen/abi-x86-64.cpp b/gen/abi-x86-64.cpp index 547fa374..f3e54d86 100644 --- a/gen/abi-x86-64.cpp +++ b/gen/abi-x86-64.cpp @@ -178,7 +178,7 @@ namespace { Logger::cout() << "x86-64 ABI: Implicitly handled type: " << ty->toChars() << '\n'; // arrays, delegates, etc. (pointer-sized fields, <= 16 bytes) - assert(offset == 0 || offset == 8 + assert((offset == 0 || offset == 8) && "must be aligned and doesn't fit otherwise"); assert(ty->size() % 8 == 0 && "Not a multiple of pointer size?"); @@ -484,7 +484,7 @@ bool X86_64TargetABI::passByVal(Type* t) { // http://llvm.org/bugs/show_bug.cgi?id=3741 return true; } else { - assert(t == Type::tfloat80 || t == Type::timaginary80 || t->ty == Tsarray || t->size() <= 8 + assert((t == Type::tfloat80 || t == Type::timaginary80 || t->ty == Tsarray || t->size() <= 8) && "What other big types are there?"); // In any case, they shouldn't be represented as structs in LLVM: assert(!isaStruct(DtoType(t))); diff --git a/gen/asm-x86-32.h b/gen/asm-x86-32.h index d2724a37..4837b017 100644 --- a/gen/asm-x86-32.h +++ b/gen/asm-x86-32.h @@ -1404,7 +1404,6 @@ namespace AsmParserx8632 // need clobber information.. use information is good too... void doInstruction() { - bool ok = true; unsigned operand_i = 0; opInfo = & asmOpInfo[op]; @@ -1454,7 +1453,6 @@ namespace AsmParserx8632 } else { - ok = false; stmt->error ( "too many operands for instruction" ); break; } @@ -1465,13 +1463,11 @@ namespace AsmParserx8632 } else if ( token->value != TOKeof ) { - ok = false; stmt->error ( "expected comma after operand" ); return; } } // if (operand_i < opInfo->minOperands) { -// ok = false; // stmt->error("too few operands for instruction"); // } diff --git a/gen/asm-x86-64.h b/gen/asm-x86-64.h index 671631d3..a685eb47 100644 --- a/gen/asm-x86-64.h +++ b/gen/asm-x86-64.h @@ -1518,7 +1518,6 @@ namespace AsmParserx8664 // need clobber information.. use information is good too... void doInstruction() { - bool ok = true; unsigned operand_i = 0; opInfo = & asmOpInfo[op]; @@ -1568,7 +1567,6 @@ namespace AsmParserx8664 } else { - ok = false; stmt->error ( "too many operands for instruction" ); break; } @@ -1579,13 +1577,11 @@ namespace AsmParserx8664 } else if ( token->value != TOKeof ) { - ok = false; stmt->error ( "expected comma after operand" ); return; } } // if (operand_i < opInfo->minOperands) { -// ok = false; // stmt->error("too few operands for instruction"); // } diff --git a/gen/runtime.cpp b/gen/runtime.cpp index 24757104..f5981765 100644 --- a/gen/runtime.cpp +++ b/gen/runtime.cpp @@ -182,12 +182,6 @@ static void LLVM_D_BuildRuntimeModule() LLType* longTy = LLType::getInt64Ty(gIR->context()); LLType* sizeTy = DtoSize_t(); - LLType* realTy; - if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64)) - realTy = LLType::getX86_FP80Ty(gIR->context()); - else - realTy = LLType::getDoubleTy(gIR->context()); - LLType* voidPtrTy = rt_ptr(byteTy); LLType* voidArrayTy = rt_array(byteTy); LLType* voidArrayPtrTy = getPtrToType(voidArrayTy);