diff options
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index a36725a9208..7e8bccddca5 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -2952,9 +2952,9 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain, const Function *Func = DAG.getMachineFunction().getFunction(); Function::const_arg_iterator FuncArg = Func->arg_begin(); - if (Func->hasFnAttribute("interrupt")) - assert(Func->arg_empty() && - "Functions with the interrupt attribute cannot have arguments!"); + if (Func->hasFnAttribute("interrupt") && !Func->arg_empty()) + report_fatal_error( + "Functions with the interrupt attribute cannot have arguments!"); CCInfo.AnalyzeFormalArguments(Ins, CC_Mips_FixedArg); MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(), diff --git a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp index 70f4a637217..297e7a2ec8b 100644 --- a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp +++ b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp @@ -548,8 +548,8 @@ void MipsSEFrameLowering::emitInterruptPrologueStub( // clearing is not provided so reject that configuration. if (!STI.hasMips32r2()) report_fatal_error( - "\"interrupt\" attribute is not supported on pre-r2 MIPS or" - "Mips16 targets."); + "\"interrupt\" attribute is not supported on pre-MIPS32R2 or " + "MIPS16 targets."); // The GP register contains the "user" value, so we cannot perform // any gp relative loads until we restore the "kernel" or "system" gp @@ -561,7 +561,7 @@ void MipsSEFrameLowering::emitInterruptPrologueStub( if (!STI.isABI_O32() || STI.hasMips64()) report_fatal_error("\"interrupt\" attribute is only supported for the " - "O32 ABI on MIPS32r2+ at the present time."); + "O32 ABI on MIPS32R2+ at the present time."); // Perform ISR handling like GCC StringRef IntKind = |