Move a comment to the right place
This commit is contained in:
parent
98c550ecc8
commit
2e79f5f9f8
1 changed files with 3 additions and 3 deletions
|
@ -785,10 +785,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Abi::ScalarPair(a_layout, b_layout) => {
|
Abi::ScalarPair(a_layout, b_layout) => {
|
||||||
if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() {
|
|
||||||
// We can only proceed if *both* scalars need to be initialized.
|
// We can only proceed if *both* scalars need to be initialized.
|
||||||
// FIXME: find a way to also check ScalarPair when one side can be uninit but
|
// FIXME: find a way to also check ScalarPair when one side can be uninit but
|
||||||
// the other must be init.
|
// the other must be init.
|
||||||
|
if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() {
|
||||||
let (a, b) =
|
let (a, b) =
|
||||||
self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair();
|
self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair();
|
||||||
self.visit_scalar(a, a_layout)?;
|
self.visit_scalar(a, a_layout)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue