Skip to content

Commit 4749899

Browse files
committed
Fix
1 parent 6397ea4 commit 4749899

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compilers/Core/Portable/CodeGen/ILBuilderEmit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ internal void EmitStringConstant(string? value, SyntaxNode? syntax)
739739
return;
740740
}
741741

742-
// If the length is greater than the specified threshold try lfsfld first and fall back to ldstr.
742+
// If the length is greater than the specified threshold try ldsfld first and fall back to ldstr.
743743
// Otherwise, try emit ldstr and fall back to ldsfld if emitting EnC delta and the heap is already full.
744744
bool success = (value.Length > module.CommonCompilation.DataSectionStringLiteralThreshold)
745745
? tryEmitLoadField() || tryEmitLoadString()

src/Compilers/Core/Portable/Emit/CommonPEModuleBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ internal abstract class CommonPEModuleBuilder : Cci.IUnit, Cci.IModuleReference
4545
private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.EmptyEnumerable<EmbeddedText>();
4646
private ArrayMethods? _lazyArrayMethods;
4747

48-
// Calculted when emitting EnC deltas.
48+
// Calculated when emitting EnC deltas.
4949
private IReadOnlyDictionary<Cci.ITypeDefinition, ArrayBuilder<Cci.IMethodDefinition>>? _encDeletedMethodDefinitions;
5050

5151
// Only set when running tests to allow inspection of the emitted data.

0 commit comments

Comments
 (0)