Commit 286b2e0
committed
PredictableMemOpt: Fix source location for injected destroys
It's not correct to copy the location from an instruction and turn it into a
RegularLocation if the Location was, e.g., a CleanupLocation. It's always safe
to use a compilergenerated location instead.
Caught by the dihole verification int the source compatibility suite.
rdar://1079840381 parent 8ea5ab8 commit 286b2e0
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
| 1222 | + | |
| 1223 | + | |
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
| |||
1251 | 1252 | | |
1252 | 1253 | | |
1253 | 1254 | | |
1254 | | - | |
| 1255 | + | |
| 1256 | + | |
1255 | 1257 | | |
1256 | 1258 | | |
1257 | 1259 | | |
| |||
1301 | 1303 | | |
1302 | 1304 | | |
1303 | 1305 | | |
1304 | | - | |
| 1306 | + | |
| 1307 | + | |
1305 | 1308 | | |
1306 | 1309 | | |
1307 | 1310 | | |
| |||
0 commit comments