Convert assert(0) to llvm_unreachable
[oota-llvm.git] / lib / Target / ARM / ARMConstantPoolValue.cpp
index 78dc78f9f33e075b5860ddaaed850e2fe9dd5492..5a830ca20226535be291842ee3ba42353aa25c0a 100644 (file)
@@ -62,8 +62,7 @@ const char *ARMConstantPoolValue::getModifierText() const {
 
 int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
                                                     unsigned Alignment) {
-  assert(false && "Shouldn't be calling this directly!");
-  return -1;
+  llvm_unreachable("Shouldn't be calling this directly!");
 }
 
 void