Add load/store helpers that take PlaceValue
This commit is contained in:
parent
3596098823
commit
d0ae76848a
6 changed files with 18 additions and 11 deletions
|
@ -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(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue