From 94a47dfde283523e5b072abc68f42368d12e271a Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 23 Dec 2021 03:59:25 +0000 Subject: [PATCH] Revert "Fix warning: "unused variable 'attrClass'" (NFC)" This reverts commit 724e6861b3d64eb74ecd98eff88955c91a200940. This broke the build. --- mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp index a2b862ea7cea..ad0b05e4c47b 100644 --- a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp +++ b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp @@ -1144,6 +1144,7 @@ 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");