1
Fork 0

Add load/store helpers that take PlaceValue

This commit is contained in:
Scott McMurray 2024-04-10 23:20:39 -07:00
parent 3596098823
commit d0ae76848a
6 changed files with 18 additions and 11 deletions

View file

@ -264,7 +264,7 @@ impl<'ll, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'_, 'll, 'tcx> {
llvm::LLVMSetAlignment(load, align);
}
if !result.layout.is_zst() {
self.store(load, result.val.llval, result.val.align);
self.store_to_place(load, result.val);
}
return Ok(());
}