Skip to content

Commit 2375d84

Browse files
committed
Fix MLIR test for UBSAN: define enum values that are set in cl::opt (NFC)
1 parent a7517e1 commit 2375d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/lib/Pass/TestPassManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct TestOptionsPass
5353
: public PassWrapper<TestOptionsPass, OperationPass<func::FuncOp>> {
5454
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestOptionsPass)
5555

56-
enum Enum {};
56+
enum Enum { One, Two };
5757

5858
struct Options : public PassPipelineOptions<Options> {
5959
ListOption<int> listOption{*this, "list",

0 commit comments

Comments
 (0)