[Mlir-commits] [mlir] 2375d84 - Fix MLIR test for UBSAN: define enum values that are set in cl::opt (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Oct 1 16:08:59 PDT 2023


Author: Mehdi Amini
Date: 2023-10-01T16:08:51-07:00
New Revision: 2375d84f0656ea97d221a68bba5a6b125e2f0856

URL: https://github.com/llvm/llvm-project/commit/2375d84f0656ea97d221a68bba5a6b125e2f0856
DIFF: https://github.com/llvm/llvm-project/commit/2375d84f0656ea97d221a68bba5a6b125e2f0856.diff

LOG: Fix MLIR test for UBSAN: define enum values that are set in cl::opt (NFC)

Added: 
    

Modified: 
    mlir/test/lib/Pass/TestPassManager.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Pass/TestPassManager.cpp b/mlir/test/lib/Pass/TestPassManager.cpp
index 3b24cf44e211080..477b75916f80c8f 100644
--- a/mlir/test/lib/Pass/TestPassManager.cpp
+++ b/mlir/test/lib/Pass/TestPassManager.cpp
@@ -53,7 +53,7 @@ struct TestOptionsPass
     : public PassWrapper<TestOptionsPass, OperationPass<func::FuncOp>> {
   MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestOptionsPass)
 
-  enum Enum {};
+  enum Enum { One, Two };
 
   struct Options : public PassPipelineOptions<Options> {
     ListOption<int> listOption{*this, "list",


        


More information about the Mlir-commits mailing list