Add missing use_srcloc in postopt and regalloc passes

This commit is contained in:
Yury Delendik
2019-01-22 18:55:44 -06:00
committed by Benjamin Bouvier
parent b7dfe8aaa6
commit 5e12f4f2b8
3 changed files with 6 additions and 0 deletions

View File

@@ -420,6 +420,7 @@ impl<'a> Context<'a> {
// secondary `opidx` key makes it possible to use an unstable (non-allocating) sort.
self.reg_uses.sort_unstable_by_key(|u| (u.value, u.opidx));
self.cur.use_srcloc(inst);
for i in 0..self.reg_uses.len() {
let ru = self.reg_uses[i];