summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-08-19 23:03:28 +0000
committerMatthias Braun <matze@braunis.de>2016-08-19 23:03:28 +0000
commit367d85304241f5754c5161ceaef93c90122e2e8b (patch)
tree1eb684d148494c836c354b0efe765aaaf3be7965 /llvm/lib/CodeGen/MachineFunction.cpp
parent27f4a94e0a9b7c1f590589a6b5b289eab8d4c7e0 (diff)
downloadbcm5719-llvm-367d85304241f5754c5161ceaef93c90122e2e8b.tar.gz
bcm5719-llvm-367d85304241f5754c5161ceaef93c90122e2e8b.zip
MachineFunction: Add llvm_unreachable for missing properties
Most compilers should give you a warning anyway though. llvm-svn: 279346
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 2ed6517cb3d..280bfb5293f 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -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 {
OpenPOWER on IntegriCloud