Skip to content

Commit c8b1515

Browse files
committed
[mlir-opt] Fix -Wcovered-switch-default in MlirOptMain.cpp (NFC)
/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:262:7: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] default: ^ 1 error generated.
1 parent db273c6 commit c8b1515

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,8 @@ class DiagnosticFilter : public ScopedDiagnosticHandler {
259259
return failure();
260260
else
261261
return success();
262-
default:
263-
llvm_unreachable("Unknown diagnostic severity");
264262
}
263+
llvm_unreachable("Unknown diagnostic severity");
265264
});
266265
}
267266
};

0 commit comments

Comments
 (0)