Remove unused PassID member from PassRegistry (NFC)
authorMehdi Amini <aminim@google.com>
Fri, 10 May 2019 06:08:13 +0000 (23:08 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:27:32 +0000 (19:27 -0700)
    Fix clang warning

--

PiperOrigin-RevId: 247558931

mlir/include/mlir/Pass/PassRegistry.h
mlir/lib/Pass/PassRegistry.cpp

index faa6472..1708818 100644 (file)
@@ -92,10 +92,6 @@ public:
   /// PassRegistration or registerPass.
   PassInfo(StringRef arg, StringRef description, const PassID *passID,
            PassAllocatorFunction allocator);
-
-private:
-  // Unique identifier for pass.
-  const PassID *passID;
 };
 
 /// Register a specific dialect pipeline registry function with the system,
index ca2399c..0d85761 100644 (file)
@@ -63,8 +63,7 @@ void mlir::registerPassPipeline(StringRef arg, StringRef description,
 
 PassInfo::PassInfo(StringRef arg, StringRef description, const PassID *passID,
                    PassAllocatorFunction allocator)
-    : PassRegistryEntry(arg, description, buildDefaultRegistryFn(allocator)),
-      passID(passID) {}
+    : PassRegistryEntry(arg, description, buildDefaultRegistryFn(allocator)) {}
 
 void mlir::registerPass(StringRef arg, StringRef description,
                         const PassID *passID,