[Hexagon] Changing an llvm_unreachable to an assertion and returning 0. Relocations...
authorColin LeMahieu <colinl@codeaurora.org>
Wed, 31 Dec 2014 15:57:38 +0000 (15:57 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Wed, 31 Dec 2014 15:57:38 +0000 (15:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225043 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp

index 4471977ab49753664fb73cd7e29e545309cee7a5..830be55431dff3719da5bf9ba33bba8f3ca41301 100644 (file)
@@ -71,7 +71,8 @@ HexagonMCCodeEmitter::getMachineOpValue(MCInst const &MI, MCOperand const &MO,
     return MCT.getRegisterInfo()->getEncodingValue(MO.getReg());
   if (MO.isImm())
     return static_cast<unsigned>(MO.getImm());
-  llvm_unreachable("Only Immediates and Registers implemented right now");
+  assert(false && "Only Immediates and Registers implemented right now");
+  return 0;
 }
 
 MCSubtargetInfo const &HexagonMCCodeEmitter::getSubtargetInfo() const {