[Mlir-commits] [mlir] 2e8188f - [mlir][NFC] Mark a debug only variable as (void) to avoid unused warning
River Riddle
llvmlistbot at llvm.org
Mon Apr 13 00:51:39 PDT 2020
Author: River Riddle
Date: 2020-04-13T00:48:17-07:00
New Revision: 2e8188ff48293a4160325af22395fe11722e12ea
URL: https://github.com/llvm/llvm-project/commit/2e8188ff48293a4160325af22395fe11722e12ea
DIFF: https://github.com/llvm/llvm-project/commit/2e8188ff48293a4160325af22395fe11722e12ea.diff
LOG: [mlir][NFC] Mark a debug only variable as (void) to avoid unused warning
Added:
Modified:
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
Removed:
################################################################################
diff --git a/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp b/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
index 84e10d9eb327..da70ab56101b 100644
--- a/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
+++ b/mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
@@ -1149,6 +1149,7 @@ LogicalResult TCParser::parseTensorDef(bool isOutput) {
auto iterBoolPair = registeredTensors.try_emplace(
tensorId, RegisteredTensor{tensorType, map, isOutput, AffineMap(),
nextRegisteredTensorIndex++});
+ (void)iterBoolPair;
assert(iterBoolPair.second && "Could not emplace tensor registration");
LLVM_DEBUG(llvm::dbgs() << "Recorded: " << tensorId << " "
<< "with typeString: " << tensorType << " "
More information about the Mlir-commits
mailing list