[spv-out] Fix annotations not getting added to output (#281)

This commit is contained in:
Timo de Kort authored and GitHub committed 2020-11-16 16:49:35 -05:00
1 parent 437b33d536
commit 820dc51e2f
1 file changed
+4 -4
+4 -4
View File
@@ -1671,10 +1671,6 @@ impl Writer {
));
}
for annotation in self.annotations.iter() {
annotation.to_words(&mut self.logical_layout.annotations);
}
for (handle, ir_function) in ir_module.functions.iter() {
let id = self.write_function(ir_function, ir_module);
self.lookup_function.insert(handle, id);
@@ -1703,6 +1699,10 @@ impl Writer {
debug.to_words(&mut self.logical_layout.debugs);
}
}
for annotation in self.annotations.iter() {
annotation.to_words(&mut self.logical_layout.annotations);
}
}
pub fn write(&mut self, ir_module: &crate::Module) -> Vec<Word> {