Commit 462f630
Fix recursive usage of emitCond() (#55)
Summary:
When the do_bb1() or do_bb2() functions called by emitCond() themselves call emitCond(), the outer conditional will grab the wrong blocks for its resulting Phi. It'll use the first block of their inner CFGs instead of the last one.
Pull Request resolved: #55
Reviewed By: kddnewton
Differential Revision: D104095042
Pulled By: alexmalyshev
fbshipit-source-id: fcc31e33e06708a3be4a751daef41c231e5450fd1 parent aa64f66 commit 462f630
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
186 | | - | |
187 | | - | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
0 commit comments