From 1811e872042a32e28ec0956a8422780b176ef3a4 Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Fri, 4 Oct 2024 20:27:40 +0800 Subject: [CodeGen] Fix enumeration value 'HasFakeUses' not handled in switch (NFC) llvm-project/llvm/lib/CodeGen/MachineFunction.cpp:95:10: error: enumeration value 'HasFakeUses' not handled in switch [-Werror,-Wswitch] switch(Prop) { ^~~~ 1 error generated. --- llvm/lib/CodeGen/MachineFunction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index b56888a..57ff2c3 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -94,6 +94,7 @@ static const char *getPropertyName(MachineFunctionProperties::Property Prop) { // clang-format off switch(Prop) { case P::FailedISel: return "FailedISel"; + case P::HasFakeUses: return "HasFakeUses"; case P::IsSSA: return "IsSSA"; case P::Legalized: return "Legalized"; case P::NoPHIs: return "NoPHIs"; -- cgit v1.1