================ @@ -896,9 +896,8 @@ static void OCL2Qual(Sema &S, const OpenCLTypeStruct &Ty, if (ImageTypesMap.contains(T->getValueAsString("Name"))) continue; // Check we have not seen this Type - if (TypesSeen.contains(T->getValueAsString("Name"))) + if (!TypesSeen.try_emplace(T->getValueAsString("Name"), true).second) ---------------- nikic wrote:
This is pretty weird, can we make it a StringSet instead? Doesn't look like the value is used. https://github.com/llvm/llvm-project/pull/109372 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits