Skip to content

Commit f530e6e

Browse files
author
Jeff Niu
committed
[mlir] Drop const from SymbolTableCollection::lookupSymbolIn
This function didn't work because it was marked const but both functions it could dispatch to are not. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D137380
1 parent 38c07d9 commit f530e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/IR/SymbolTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class SymbolTableCollection {
249249
Operation *lookupSymbolIn(Operation *symbolTableOp, StringAttr symbol);
250250
Operation *lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr name);
251251
template <typename T, typename NameT>
252-
T lookupSymbolIn(Operation *symbolTableOp, NameT &&name) const {
252+
T lookupSymbolIn(Operation *symbolTableOp, NameT &&name) {
253253
return dyn_cast_or_null<T>(
254254
lookupSymbolIn(symbolTableOp, std::forward<NameT>(name)));
255255
}

0 commit comments

Comments
 (0)