Change the order of compiler checks in assume_aligned