From 19ebadd7169cb4982a00a3e91dce68270eb365b1 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 21 Sep 2014 17:27:31 +0000 Subject: [PATCH] Use llvm_unreachable instead of assert(!) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218222 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp index a52254b520f..fa7e0de90fa 100644 --- a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp +++ b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp @@ -232,7 +232,7 @@ void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, const MCExpr *Exp = Op.getExpr(); Exp->print(O); } else { - assert(!"unknown operand type in printOperand"); + llvm_unreachable("unknown operand type in printOperand"); } } @@ -259,7 +259,7 @@ void AMDGPUInstPrinter::printInterpSlot(const MCInst *MI, unsigned OpNum, } else if (Imm == 0) { O << "P10"; } else { - assert(!"Invalid interpolation parameter slot"); + llvm_unreachable("Invalid interpolation parameter slot"); } }