Skip to content

Commit a4525fc

Browse files
committed
[CodeGen] Fix -Wcovered-switch-default in Combiner.cpp (NFC)
/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:220:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] default: ^ 1 error generated.
1 parent d2a8351 commit a4525fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/GlobalISel/Combiner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ Combiner::WorkListMaintainer::create(Level Lvl, WorkListTy &WorkList,
217217
case Level::SinglePass:
218218
return std::make_unique<WorkListMaintainerImpl<Level::SinglePass>>(WorkList,
219219
MRI);
220-
default:
221-
llvm_unreachable("Illegal ObserverLevel");
222220
}
221+
llvm_unreachable("Illegal ObserverLevel");
223222
}
224223

225224
Combiner::Combiner(MachineFunction &MF, CombinerInfo &CInfo,

0 commit comments

Comments
 (0)