[llvm] 1811e87 - [CodeGen] Fix enumeration value 'HasFakeUses' not handled in switch (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 05:31:22 PDT 2024


Author: Jie Fu
Date: 2024-10-04T20:27:40+08:00
New Revision: 1811e872042a32e28ec0956a8422780b176ef3a4

URL: https://github.com/llvm/llvm-project/commit/1811e872042a32e28ec0956a8422780b176ef3a4
DIFF: https://github.com/llvm/llvm-project/commit/1811e872042a32e28ec0956a8422780b176ef3a4.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineFunction.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index b56888a0f71fe6..57ff2c30a19243 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";


        


More information about the llvm-commits mailing list