diff options
author | Richard Trieu <rtrieu@google.com> | 2013-06-28 23:46:19 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-06-28 23:46:19 +0000 |
commit | d1fe8d5212fbcb12dd592239f76f95ff2db7870d (patch) | |
tree | 4784a369a34fc4623d8d776d99ec3511018a401c | |
parent | b41f4bbfbd233fae70962a6b4049de2c08da2657 (diff) | |
download | external_llvm-d1fe8d5212fbcb12dd592239f76f95ff2db7870d.zip external_llvm-d1fe8d5212fbcb12dd592239f76f95ff2db7870d.tar.gz external_llvm-d1fe8d5212fbcb12dd592239f76f95ff2db7870d.tar.bz2 |
Change assert(0 && "text") to llvm_unreachable(0 && "text")
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185243 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp index 3105665..065971e 100644 --- a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp +++ b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp @@ -179,7 +179,7 @@ void HexagonInstPrinter::printBranchOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) const { // Branches can take an immediate operand. This is used by the branch // selection pass to print $+8, an eight byte displacement from the PC. - assert(0 && "Unknown branch operand."); + llvm_unreachable("Unknown branch operand."); } void HexagonInstPrinter::printCallOperand(const MCInst *MI, unsigned OpNo, @@ -203,7 +203,7 @@ void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo, O << '#'; printOperand(MI, OpNo, O); } else { - assert(0 && "Unknown symbol operand"); + llvm_unreachable("Unknown symbol operand"); printOperand(MI, OpNo, O); } O << ')'; |