1
Fork 0

rustc_codegen_llvm: fix tidy errors.

This commit is contained in:
Irina Popa 2018-07-17 18:26:58 +03:00
parent ba006440ee
commit 265f2fa4de
10 changed files with 77 additions and 24 deletions

View file

@ -266,7 +266,12 @@ impl OperandValue<'ll> {
self.store_with_flags(bx, dest, MemFlags::NONTEMPORAL);
}
fn store_with_flags(self, bx: &Builder<'a, 'll, 'tcx>, dest: PlaceRef<'ll, 'tcx>, flags: MemFlags) {
fn store_with_flags(
self,
bx: &Builder<'a, 'll, 'tcx>,
dest: PlaceRef<'ll, 'tcx>,
flags: MemFlags,
) {
debug!("OperandRef::store: operand={:?}, dest={:?}", self, dest);
// Avoid generating stores of zero-sized values, because the only way to have a zero-sized
// value is through `undef`, and store itself is useless.