Skip to content
Snippets Groups Projects
Commit d256c41a authored by Ryan Ziegler's avatar Ryan Ziegler
Browse files

runtime resiliency

parent eb20fd06
No related branches found
No related tags found
No related merge requests found
Pipeline #202724 failed
......@@ -1364,12 +1364,18 @@ impl<'a> RTContext<'a> {
write!(w, ", dc_p{}: u64", idx)?;
}
write!(w, ") -> usize {{")?;
let mut written = false;
for (device, (total, _)) in self.backing_allocations[&self.func_id].iter() {
if *device == Device::LLVM {
self.codegen_dynamic_constant(*total, w)?;
write!(w, "as usize")?;
}
written = true;
}
if !written {
write!(w, "0 as usize")?;
}
write!(w, "}}")?;
write!(w, "async fn run<'runner:")?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment