[clang] [CIR] Fix problem with phantom function arguments (PR #140322)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri May 16 17:28:15 PDT 2025


================
@@ -112,8 +112,16 @@ class CIRGenFunctionInfo final
 
   // NOLINTNEXTLINE(readability-identifier-naming)
   void Profile(llvm::FoldingSetNodeID &id) {
-    id.AddBoolean(required.getOpaqueData());
-    getReturnType().Profile(id);
+    // It's unfortunate that we are looping over the arguments twice (here and
+    // in the static Profile function we call from here), but if the Profile
+    // functions get out of sync, we can end up with incorrect function
+    // signatures, and we don't have the argument types in the format that the
----------------
bcardosolopes wrote:

Oh, I see, thanks for the extra context!

https://github.com/llvm/llvm-project/pull/140322


More information about the cfe-commits mailing list