Skip to content

Commit b35bb7b

Browse files
committed
[mlir] Fix 'StringSet' may not intend to support class template argument deduction (NFC)
/llvm-project/mlir/tools/mlir-tblgen/OmpOpGen.cpp:202:3: error: 'StringSet' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] llvm::StringSet superClasses; ^ /llvm-project/llvm/include/llvm/ADT/StringSet.h:23:7: note: add a deduction guide to suppress this warning class StringSet : public StringMap<std::nullopt_t, AllocatorTy> { ^
1 parent 7c25ae8 commit b35bb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/tools/mlir-tblgen/OmpOpGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static StringRef translateArgumentType(ArrayRef<SMLoc> loc, StringInit *name,
199199
Init *init, int &nest, int &rank) {
200200
Record *def = cast<DefInit>(init)->getDef();
201201

202-
llvm::StringSet superClasses;
202+
llvm::StringSet<> superClasses;
203203
for (auto [sc, _] : def->getSuperClasses())
204204
superClasses.insert(sc->getNameInitAsString());
205205

0 commit comments

Comments
 (0)