From 367d85304241f5754c5161ceaef93c90122e2e8b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 19 Aug 2016 23:03:28 +0000 Subject: [PATCH] MachineFunction: Add llvm_unreachable for missing properties Most compilers should give you a warning anyway though. llvm-svn: 279346 --- llvm/lib/CodeGen/MachineFunction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 2ed6517..280bfb5 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 { -- 2.7.4