File tree 2 files changed +1
-5
lines changed
runtime/vm/compiler/frontend
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,11 @@ List<String> expected = [
43
43
"$FILE :${LINE + 0 }:46" , // on 'shape' after 'switch'
44
44
"$FILE :${LINE + 1 }:20" , // on ':'
45
45
"$FILE :${LINE + 2 }:20" , // on ':'
46
- "$FILE :${LINE + 1 }:26" , // on 'l' right after 'var'
47
46
"$FILE :${LINE + 1 }:7" , // on 'Square'
48
- "$FILE :${LINE + 2 }:26" , // on 'r' right after 'var'
49
47
"$FILE :${LINE + 2 }:7" , // on 'Circle'
50
48
"$FILE :${LINE + 2 }:26" , // on 'r' right after 'var'
51
49
"$FILE :${LINE + 2 }:36" , // on '>='
52
- "$FILE :${LINE + 3 }:26" , // on 'l' right after 'var'
53
50
"$FILE :${LINE + 1 }:7" , // on 'Square'
54
- "$FILE :${LINE + 4 }:26" , // on 'r' right after 'var'
55
51
"$FILE :${LINE + 2 }:7" , // on 'Circle'
56
52
"$FILE :${LINE + 4 }:26" , // on 'r' right after 'var'
57
53
"$FILE :${LINE + 4 }:36" , // on '<'
Original file line number Diff line number Diff line change @@ -5802,7 +5802,7 @@ Fragment StreamingFlowGraphBuilder::BuildVariableDeclaration(
5802
5802
? helper.equals_position_
5803
5803
: helper.position_ ;
5804
5804
if (position != nullptr ) *position = helper.position_ ;
5805
- if (NeedsDebugStepCheck (stack (), debug_position)) {
5805
+ if (NeedsDebugStepCheck (stack (), debug_position) && !helper. IsHoisted () ) {
5806
5806
instructions = DebugStepCheck (debug_position) + instructions;
5807
5807
}
5808
5808
instructions += StoreLocal (helper.position_ , variable);
You can’t perform that action at this time.
0 commit comments