summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/R600ISelLowering.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-10 21:37:42 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-12-10 21:37:42 +0000
commiteaa3a7efab65d0a65ddda7fdb7e5fbdbd5f897ad (patch)
tree9c9ed8b0fcd36f5316aef1c3f2980a391efc3032 /llvm/lib/Target/R600/R600ISelLowering.cpp
parent1b01849f2d79daad54c43dd27ec0ac691d79c6b4 (diff)
downloadbcm5719-llvm-eaa3a7efab65d0a65ddda7fdb7e5fbdbd5f897ad.tar.gz
bcm5719-llvm-eaa3a7efab65d0a65ddda7fdb7e5fbdbd5f897ad.zip
Use llvm_unreachable instead of assert(0)
llvm-svn: 196971
Diffstat (limited to 'llvm/lib/Target/R600/R600ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/R600ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.cpp b/llvm/lib/Target/R600/R600ISelLowering.cpp
index 21a2b0dd170..8d71919704d 100644
--- a/llvm/lib/Target/R600/R600ISelLowering.cpp
+++ b/llvm/lib/Target/R600/R600ISelLowering.cpp
@@ -977,7 +977,7 @@ SDValue R600TargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const
HWFalse = DAG.getConstant(0, CompareVT);
}
else {
- assert(!"Unhandled value type in LowerSELECT_CC");
+ llvm_unreachable("Unhandled value type in LowerSELECT_CC");
}
// Lower this unsupported SELECT_CC into a combination of two supported
@@ -1099,7 +1099,7 @@ SDValue R600TargetLowering::LowerSTORE(SDValue Op, SelectionDAG &DAG) const {
Ptr, DAG.getConstant(2, MVT::i32)));
if (StoreNode->isTruncatingStore() || StoreNode->isIndexed()) {
- assert(!"Truncated and indexed stores not supported yet");
+ llvm_unreachable("Truncated and indexed stores not supported yet");
} else {
Chain = DAG.getStore(Chain, DL, Value, Ptr, StoreNode->getMemOperand());
}
OpenPOWER on IntegriCloud