Fix warnings with -DNDEBUG
authorTom Stellard <thomas.stellard@amd.com>
Thu, 13 Dec 2012 19:38:52 +0000 (19:38 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 13 Dec 2012 19:38:52 +0000 (19:38 +0000)
Patch by: NAKAMURA Takumi

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170142 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDILIntrinsicInfo.cpp
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/R600InstrInfo.cpp

index 02d06d6f3d7a4e9edea5d7b559ab6ad7d3ce111b..70db4e6da2c16044ab5e5a812a210f3ec2189e17 100644 (file)
@@ -75,5 +75,5 @@ Function*
 AMDGPUIntrinsicInfo::getDeclaration(Module *M, unsigned IntrID,
     Type **Tys,
     unsigned numTys) const  {
-  assert(!"Not implemented");
+  llvm_unreachable("Not implemented");
 }
index eaeff4ec217e1aa6ef3fa24e88401e279c57c8e9..28d5470b8ccfc22c3d917fb1930fe4c509ce2e1b 100644 (file)
@@ -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,
index a60a1802d48ed1f34bc7c2ca10ff4044a2798990..79bb97584e2558e9c2a4d58be3e559a1aa3a72e4 100644 (file)
@@ -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;