MachineFunction: Add llvm_unreachable for missing properties

Most compilers should give you a warning anyway though.

llvm-svn: 279346
This commit is contained in:
Matthias Braun 2016-08-19 23:03:28 +00:00
parent 27f4a94e0a
commit 367d853042
1 changed files with 1 additions and 0 deletions

View File

@ -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 {