[Mlir-commits] [mlir] 724e686 - Fix warning: "unused variable 'attrClass'" (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Dec 22 19:56:00 PST 2021


Author: Mehdi Amini
Date: 2021-12-23T03:55:47Z
New Revision: 724e6861b3d64eb74ecd98eff88955c91a200940

URL: https://github.com/llvm/llvm-project/commit/724e6861b3d64eb74ecd98eff88955c91a200940
DIFF: https://github.com/llvm/llvm-project/commit/724e6861b3d64eb74ecd98eff88955c91a200940.diff

LOG: Fix warning: "unused variable 'attrClass'" (NFC)

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
index ad0b05e4c47b4..a2b862ea7cea7 100644
--- a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
+++ b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
@@ -1144,7 +1144,6 @@ static bool emitSerializationFns(const RecordKeeper &recordKeeper,
       utilsString;
   raw_string_ostream dSerFn(dSerFnString), dDesFn(dDesFnString),
       serFn(serFnString), deserFn(deserFnString);
-  Record *attrClass = recordKeeper.getClass("Attr");
 
   // Emit the serialization and deserialization functions simultaneously.
   StringRef opVar("op");


        


More information about the Mlir-commits mailing list