[llvm] r279346 - MachineFunction: Add llvm_unreachable for missing properties
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 16:03:29 PDT 2016
Author: matze
Date: Fri Aug 19 18:03:28 2016
New Revision: 279346
URL: http://llvm.org/viewvc/llvm-project?rev=279346&view=rev
Log:
MachineFunction: Add llvm_unreachable for missing properties
Most compilers should give you a warning anyway though.
Modified:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=279346&r1=279345&r2=279346&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Fri Aug 19 18:03:28 2016
@@ -64,6 +64,7 @@ static const char *getPropertyName(Machi
case P::Selected: return "Selected";
case P::TracksLiveness: return "TracksLiveness";
}
+ llvm_unreachable("Invalid machine function property");
}
void MachineFunctionProperties::print(raw_ostream &OS) const {
More information about the llvm-commits
mailing list