Skip to content

Commit

Permalink
Update missed type update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpienaar authored Sep 10, 2024
1 parent 8b695ed commit d5f1949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tblgen/hs-generators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ const std::string sanitizeName(llvm::StringRef name, std::optional<int> idx = st
}
}

std::string getDialectName(llvm::ArrayRef<llvm::Record*> op_defs) {
std::string getDialectName(llvm::ArrayRef<const llvm::Record*> op_defs) {
mlir::tblgen::Operator any_op(op_defs.front());
assert(
std::all_of(op_defs.begin(), op_defs.end(), [&any_op](llvm::Record* op) {
assert(std::all_of(
op_defs.begin(), op_defs.end(), [&any_op](const llvm::Record* op) {
return mlir::tblgen::Operator(op).getDialectName() ==
any_op.getDialectName();
}));
Expand Down

0 comments on commit d5f1949

Please sign in to comment.