Skip to content

Commit e5623a3

Browse files
committed
merge
2 parents 4cbf88b + 07a96ef commit e5623a3

24 files changed

+312
-344
lines changed

src/fsharp/IlxGen.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,13 +2411,16 @@ and GenExprPreSteps (cenv: cenv) (cgbuf: CodeGenBuffer) eenv sp expr sequel =
24112411

24122412
match LowerStateMachineExpr cenv.g expr with
24132413
| LoweredStateMachineResult.Lowered res ->
2414+
checkLanguageFeatureError cenv.g.langVersion LanguageFeature.ResumableStateMachines expr.Range
24142415
GenStructStateMachine cenv cgbuf eenv res sequel
24152416
true
24162417
| LoweredStateMachineResult.UseAlternative (msg, altExpr) ->
2418+
checkLanguageFeatureError cenv.g.langVersion LanguageFeature.ResumableStateMachines expr.Range
24172419
warning(Error(FSComp.SR.reprStateMachineNotCompilable(msg), expr.Range))
24182420
GenExpr cenv cgbuf eenv sp altExpr sequel
24192421
true
24202422
| LoweredStateMachineResult.NoAlternative msg ->
2423+
checkLanguageFeatureError cenv.g.langVersion LanguageFeature.ResumableStateMachines expr.Range
24212424
errorR(Error(FSComp.SR.reprStateMachineNotCompilableNoAlternative(msg), expr.Range))
24222425
GenDefaultValue cenv cgbuf eenv (tyOfExpr cenv.g expr, expr.Range)
24232426
true

tests/fsharp/Compiler/CodeGen/EmittedIL/ComputedListExpressions.fs

Lines changed: 146 additions & 150 deletions
Large diffs are not rendered by default.

tests/fsharp/Compiler/CodeGen/EmittedIL/TaskGeneratedCode.fs

Lines changed: 96 additions & 112 deletions
Large diffs are not rendered by default.

tests/fsharpqa/Source/CodeGen/EmittedIL/ListExpressionStepping/ListExpressionSteppingTest1.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000270 Length: 0x000000AF
3737
}
3838
.module ListExpressionSteppingTest1.exe
39-
// MVID: {60BCC37B-50CF-F6CE-A745-03837BC3BC60}
39+
// MVID: {60B78A57-50CF-F6CE-A745-0383578AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x06E70000
45+
// Image base: 0x07190000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/ListExpressionStepping/ListExpressionSteppingTest2.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000270 Length: 0x000000AF
3737
}
3838
.module ListExpressionSteppingTest2.exe
39-
// MVID: {60BCC37B-D3DE-B780-A745-03837BC3BC60}
39+
// MVID: {60B78A57-D3DE-B780-A745-0383578AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x06A70000
45+
// Image base: 0x094E0000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/ListExpressionStepping/ListExpressionSteppingTest3.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000280 Length: 0x000000AF
3737
}
3838
.module ListExpressionSteppingTest3.exe
39-
// MVID: {60BCC37B-AE45-39B4-A745-03837BC3BC60}
39+
// MVID: {60B78A57-AE45-39B4-A745-0383578AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x07190000
45+
// Image base: 0x06EB0000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/ListExpressionStepping/ListExpressionSteppingTest4.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000270 Length: 0x000000AF
3737
}
3838
.module ListExpressionSteppingTest4.exe
39-
// MVID: {60BCC37B-3154-FA67-A745-03837BC3BC60}
39+
// MVID: {60B78A57-3154-FA67-A745-0383578AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x07150000
45+
// Image base: 0x06700000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/ListExpressionStepping/ListExpressionSteppingTest5.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000270 Length: 0x000000AF
3737
}
3838
.module ListExpressionSteppingTest5.exe
39-
// MVID: {60BD414B-CBE3-BFEA-A745-03834B41BD60}
39+
// MVID: {60B78A57-CBE3-BFEA-A745-0383578AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x07210000
45+
// Image base: 0x06C00000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/Misc/AnonRecd.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x000001C8 Length: 0x0000006B
3737
}
3838
.module AnonRecd.exe
39-
// MVID: {60BD4553-C42F-5208-A745-03835345BD60}
39+
// MVID: {60B68B7F-C42F-5208-A745-03837F8BB660}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x053D0000
45+
// Image base: 0x05160000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

tests/fsharpqa/Source/CodeGen/EmittedIL/SeqExpressionStepping/SeqExpressionSteppingTest1.il.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
// Offset: 0x00000268 Length: 0x000000AD
3737
}
3838
.module SeqExpressionSteppingTest1.exe
39-
// MVID: {60BD414C-2432-947D-A745-03834C41BD60}
39+
// MVID: {60B78A59-2432-947D-A745-0383598AB760}
4040
.imagebase 0x00400000
4141
.file alignment 0x00000200
4242
.stackreserve 0x00100000
4343
.subsystem 0x0003 // WINDOWS_CUI
4444
.corflags 0x00000001 // ILONLY
45-
// Image base: 0x06860000
45+
// Image base: 0x06A30000
4646

4747

4848
// =============== CLASS MEMBERS DECLARATION ===================

0 commit comments

Comments
 (0)