MachineFunction: Add llvm_unreachable for missing properties
Most compilers should give you a warning anyway though. llvm-svn: 279346
This commit is contained in:
parent
27f4a94e0a
commit
367d853042
|
@ -64,6 +64,7 @@ static const char *getPropertyName(MachineFunctionProperties::Property Prop) {
|
|||
case P::Selected: return "Selected";
|
||||
case P::TracksLiveness: return "TracksLiveness";
|
||||
}
|
||||
llvm_unreachable("Invalid machine function property");
|
||||
}
|
||||
|
||||
void MachineFunctionProperties::print(raw_ostream &OS) const {
|
||||
|
|
Loading…
Reference in New Issue