Skip to content

Commit 86a2fa4

Browse files
lxsameerjoker-eph
authored andcommitted
Rename the 'concept' variable in SymbolInterfaces.td
`concept` is a reserved keyword in C++20, it can't be used as a variable name. Here is an example of the failure: ``` auto *concept = getInterfaceFor(op); ^ include/mlir/IR/SymbolInterfaces.h.inc:156:12: error: expected expression [clang-diagnostic-error] if (!concept) ^ ``` Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D99369
1 parent 4858e08 commit 86a2fa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/include/mlir/IR/SymbolInterfaces.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
178178
let extraClassDeclaration = [{
179179
/// Custom classof that handles the case where the symbol is optional.
180180
static bool classof(Operation *op) {
181-
auto *concept = getInterfaceFor(op);
182-
if (!concept)
181+
auto *opConcept = getInterfaceFor(op);
182+
if (!opConcept)
183183
return false;
184-
return !concept->isOptionalSymbol(concept, op) ||
184+
return !opConcept->isOptionalSymbol(opConcept, op) ||
185185
op->getAttr(::mlir::SymbolTable::getSymbolAttrName());
186186
}
187187
}];

0 commit comments

Comments
 (0)