Skip to content

Commit

Permalink
[CodeGen] Fix enumeration value 'HasFakeUses' not handled in switch (…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
DamonFool committed Oct 4, 2024
1 parent 800b073 commit 1811e87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/MachineFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1811e87

Please sign in to comment.