Hexagon: Use llvm_unreachable. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 3 Aug 2016 15:51:10 +0000 (15:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 3 Aug 2016 15:51:10 +0000 (15:51 +0000)
llvm-svn: 277605

llvm/lib/Target/Hexagon/HexagonVectorPrint.cpp

index 250f6f8..d35dec2 100644 (file)
@@ -142,7 +142,7 @@ bool HexagonVectorPrint::runOnMachineFunction(MachineFunction &Fn) {
     DEBUG(dbgs() << "Evaluating V MI\n"; I->dump());
     unsigned Reg = 0;
     if (!getInstrVecReg(*I, Reg))
-      assert(!"Need a vector reg");
+      llvm_unreachable("Need a vector reg");
     MachineBasicBlock::instr_iterator MII = I->getIterator();
     if (I->isInsideBundle()) {
       DEBUG(dbgs() << "add to end of bundle\n"; I->dump());