projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f4a94
)
MachineFunction: Add llvm_unreachable for missing properties
author
Matthias Braun
<matze@braunis.de>
Fri, 19 Aug 2016 23:03:28 +0000
(23:03 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 19 Aug 2016 23:03:28 +0000
(23:03 +0000)
Most compilers should give you a warning anyway though.
llvm-svn: 279346
llvm/lib/CodeGen/MachineFunction.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineFunction.cpp
b/llvm/lib/CodeGen/MachineFunction.cpp
index
2ed6517
..
280bfb5
100644
(file)
--- 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 {