From 36a0b013a7d8974f3044d7d587d28d2bb951754b Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 13 Dec 2012 19:38:52 +0000 Subject: [PATCH] Fix warnings with -DNDEBUG Patch by: NAKAMURA Takumi llvm-svn: 170142 --- lib/Target/R600/AMDILIntrinsicInfo.cpp | 2 +- lib/Target/R600/R600ISelLowering.cpp | 2 +- lib/Target/R600/R600InstrInfo.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Target/R600/AMDILIntrinsicInfo.cpp b/lib/Target/R600/AMDILIntrinsicInfo.cpp index 02d06d6f3d7..70db4e6da2c 100644 --- a/lib/Target/R600/AMDILIntrinsicInfo.cpp +++ b/lib/Target/R600/AMDILIntrinsicInfo.cpp @@ -75,5 +75,5 @@ Function* AMDGPUIntrinsicInfo::getDeclaration(Module *M, unsigned IntrID, Type **Tys, unsigned numTys) const { - assert(!"Not implemented"); + llvm_unreachable("Not implemented"); } diff --git a/lib/Target/R600/R600ISelLowering.cpp b/lib/Target/R600/R600ISelLowering.cpp index eaeff4ec217..28d5470b8cc 100644 --- a/lib/Target/R600/R600ISelLowering.cpp +++ b/lib/Target/R600/R600ISelLowering.cpp @@ -413,7 +413,7 @@ SDValue R600TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const Inst = 1; break; default: - assert(0 && "Wrong buffer id for stream outputs !"); + llvm_unreachable("Wrong buffer id for stream outputs !"); } return InsertScalarToRegisterExport(DAG, Op.getDebugLoc(), OutputsMap, diff --git a/lib/Target/R600/R600InstrInfo.cpp b/lib/Target/R600/R600InstrInfo.cpp index a60a1802d48..79bb97584e2 100644 --- a/lib/Target/R600/R600InstrInfo.cpp +++ b/lib/Target/R600/R600InstrInfo.cpp @@ -605,6 +605,7 @@ MachineOperand &R600InstrInfo::getFlagOp(MachineInstr *MI, unsigned SrcIdx, case MO_FLAG_ABS: assert(!IsOP3 && "Cannot set absolute value modifier for OP3 " "instructions."); + (void)IsOP3; switch (SrcIdx) { case 0: FlagIndex = getOperandIdx(*MI, R600Operands::SRC0_ABS); break; case 1: FlagIndex = getOperandIdx(*MI, R600Operands::SRC1_ABS); break;