[llvm] r193183 - R600/SI: Use llvm_unreachable() for an always false assert

Tom Stellard thomas.stellard at amd.com
Tue Oct 22 11:42:03 PDT 2013


Author: tstellar
Date: Tue Oct 22 13:42:03 2013
New Revision: 193183

URL: http://llvm.org/viewvc/llvm-project?rev=193183&view=rev
Log:
R600/SI: Use llvm_unreachable() for an always false assert

Modified:
    llvm/trunk/lib/Target/R600/SIInstrInfo.cpp

Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.cpp?rev=193183&r1=193182&r2=193183&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.cpp Tue Oct 22 13:42:03 2013
@@ -201,8 +201,7 @@ MachineInstr *SIInstrInfo::buildMovInstr
                                          MachineBasicBlock::iterator I,
                                          unsigned DstReg,
                                          unsigned SrcReg) const {
-  assert(!"Not Implemented");
-  return NULL;
+  llvm_unreachable("Not Implemented");
 }
 
 bool SIInstrInfo::isMov(unsigned Opcode) const {





More information about the llvm-commits mailing list