@@ -643,7 +643,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
643
643
value : Const < ' tcx > ,
644
644
source_info : SourceInfo ,
645
645
) {
646
- trace ! ( "attepting to replace {:?} with {:?}" , rval, value) ;
646
+ trace ! ( "attempting to replace {:?} with {:?}" , rval, value) ;
647
647
if let Err ( e) = self . ecx . validate_operand (
648
648
value,
649
649
vec ! [ ] ,
@@ -654,8 +654,9 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
654
654
return ;
655
655
}
656
656
657
- // FIXME> figure out what tho do when try_read_immediate fails
657
+ // FIXME: figure out what tho do when try_read_immediate fails
658
658
let imm = self . use_ecx ( source_info, |this| this. ecx . try_read_immediate ( value) ) ;
659
+ debug ! ( "Read value {:?} as immediate {:?}" , value, imm) ;
659
660
660
661
if let Some ( Ok ( imm) ) = imm {
661
662
match * imm {
@@ -670,7 +671,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
670
671
ScalarMaybeUndef :: Scalar ( one) ,
671
672
ScalarMaybeUndef :: Scalar ( two) ,
672
673
) => {
673
- // Found a value represented as a pair. For now only do cont -prop if type of
674
+ // Found a value represented as a pair. For now only do const -prop if type of
674
675
// Rvalue is also a pair with two scalars. The more general case is more
675
676
// complicated to implement so we'll do it later.
676
677
let ty = & value. layout . ty . kind ;
0 commit comments