llvm-project
f7ef8dcb - [CIR] Fix problem with phantom function arguments (#140322)

Commit
173 days ago
[CIR] Fix problem with phantom function arguments (#140322) There was a problem introduced today where sometimes the CIR for functions with no arguments would be generated with phantom arguments. This was causing intermittent test failures. The problem appears to have been that we were using two different Profile implementations to generate the FoldingSetNodeID for CIRGenFunctionInfo so occaissionally when we tried to look for a pre-existing entry for a function with no arguments it would incorrectly match a CIRGenFunctionInfo entry that had arguments. To prevent this from happening again, I rewrote one of the two Profile functions to call the other.
Author
Parents
Loading