Explain why we are creating an aggregate constant

This commit is contained in:
Oliver Scherer 2020-08-18 13:57:32 +02:00
parent 03d38d42b7
commit 39a114e400

View File

@ -856,6 +856,8 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
});
if let Some(Some(alloc)) = alloc {
// Assign entire constant in a single statement.
// We can't use aggregates, as we are post-aggregate-lowering.
*rval = Rvalue::Use(Operand::Constant(Box::new(Constant {
span: source_info.span,
user_ty: None,