[llvm] r277605 - Hexagon: Use llvm_unreachable. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 08:51:10 PDT 2016
Author: d0k
Date: Wed Aug 3 10:51:10 2016
New Revision: 277605
URL: http://llvm.org/viewvc/llvm-project?rev=277605&view=rev
Log:
Hexagon: Use llvm_unreachable. NFC.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonVectorPrint.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonVectorPrint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVectorPrint.cpp?rev=277605&r1=277604&r2=277605&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVectorPrint.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVectorPrint.cpp Wed Aug 3 10:51:10 2016
@@ -142,7 +142,7 @@ bool HexagonVectorPrint::runOnMachineFun
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());
More information about the llvm-commits
mailing list