[Mlir-commits] [mlir] 7cdb875 - [mlir] silence msvc warning

Alex Zinenko llvmlistbot at llvm.org
Tue May 30 08:59:27 PDT 2023


Author: Alex Zinenko
Date: 2023-05-30T15:59:19Z
New Revision: 7cdb875d4dcd5bb65708521dc121e3c969c561b9

URL: https://github.com/llvm/llvm-project/commit/7cdb875d4dcd5bb65708521dc121e3c969c561b9
DIFF: https://github.com/llvm/llvm-project/commit/7cdb875d4dcd5bb65708521dc121e3c969c561b9.diff

LOG: [mlir] silence msvc warning

Added: 
    

Modified: 
    mlir/examples/transform/Ch3/lib/MyExtension.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/examples/transform/Ch3/lib/MyExtension.cpp b/mlir/examples/transform/Ch3/lib/MyExtension.cpp
index 41b3ffef1b49..a4f9108df0e8 100644
--- a/mlir/examples/transform/Ch3/lib/MyExtension.cpp
+++ b/mlir/examples/transform/Ch3/lib/MyExtension.cpp
@@ -76,8 +76,8 @@ void MyExtension::init() {
   // ODS generates these helpers for type printing and parsing, but the
   // Transform dialect provides its own support for types supplied by the
   // extension. Reference these functions to avoid a compiler warning.
-  (void)generatedTypeParser;
-  (void)generatedTypePrinter;
+  (void)&generatedTypeParser;
+  (void)&generatedTypePrinter;
 
   // Finally, we register the additional transform operations with the dialect.
   // List all operations generated from ODS. This call will perform additional


        


More information about the Mlir-commits mailing list