[clang] [CIR][NFC] Eliminate ArgInfo structure (PR #140612)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Mon May 19 17:08:34 PDT 2025
================
@@ -542,8 +542,15 @@ CIRGenTypes::arrangeCIRFunctionInfo(CanQualType returnType,
void *insertPos = nullptr;
CIRGenFunctionInfo *fi = functionInfos.FindNodeOrInsertPos(id, insertPos);
- if (fi)
+ if (fi) {
+ // We found a matching function info based on id. These asserts verify that
+ // it really is a match.
+ assert(
+ fi->getReturnType() == returnType &&
+ std::equal(fi->argTypesBegin(), fi->argTypesEnd(), argTypes.begin()) &&
+ "Bad match based on CIRGenFunctionInfo folding set id");
----------------
bcardosolopes wrote:
thanks Andy!
https://github.com/llvm/llvm-project/pull/140612
More information about the cfe-commits
mailing list