summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-21 17:27:31 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-21 17:27:31 +0000
commit393366c691b69550fd95d1f552ff4d5a016f98bd (patch)
treea63875ed4fcc832db7c4c8cd0ff1071eb0ce2ad0 /llvm/lib
parent3673eba568599d8d822554a44b3524b4dd391800 (diff)
downloadbcm5719-llvm-393366c691b69550fd95d1f552ff4d5a016f98bd.tar.gz
bcm5719-llvm-393366c691b69550fd95d1f552ff4d5a016f98bd.zip
Use llvm_unreachable instead of assert(!)
llvm-svn: 218222
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp b/llvm/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
index a52254b520f..fa7e0de90fa 100644
--- a/llvm/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
+++ b/llvm/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");
}
}
OpenPOWER on IntegriCloud