Skip to content

Commit 4f80a34

Browse files
committed
Remove warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
1 parent 3505858 commit 4f80a34

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mlir/lib/Conversion/XeVMToLLVM/XeVMToLLVM.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ int32_t getL1CacheControl(OpType op) {
125125
case LoadCacheControl::INVALIDATE_READ:
126126
control = 4;
127127
break;
128-
default:
129-
break;
130128
}
131129
} else {
132130
switch (*op.getCacheControl()) {
@@ -153,8 +151,6 @@ int32_t getL1CacheControl(OpType op) {
153151
case StoreCacheControl::L1WB_L2UC_L3WB:
154152
control = 4;
155153
break;
156-
default:
157-
break;
158154
}
159155
}
160156
return control;
@@ -184,8 +180,6 @@ int32_t getL3CacheControl(OpType op) {
184180
case LoadCacheControl::INVALIDATE_READ:
185181
control = 4;
186182
break;
187-
default:
188-
break;
189183
}
190184
} else {
191185
switch (*op.getCacheControl()) {
@@ -208,8 +202,6 @@ int32_t getL3CacheControl(OpType op) {
208202
case StoreCacheControl::L1WB_L2UC_L3WB:
209203
control = 2;
210204
break;
211-
default:
212-
break;
213205
}
214206
}
215207
return control;

0 commit comments

Comments
 (0)