Commit 303469f
committed
[CIR] Fix problem with phantom function arguments
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.1 parent 8188931 commit 303469f
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
0 commit comments