Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs')
-rw-r--r--src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs b/src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs
index f20020ad710..ff5cee89663 100644
--- a/src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs
+++ b/src/coreclr/tools/Common/Compiler/DependencyAnalysis/ObjectDataBuilder.cs
@@ -21,10 +21,10 @@ namespace ILCompiler.DependencyAnalysis
public ObjectDataBuilder(TargetDetails target, bool relocsOnly)
{
_target = target;
- _data = new ArrayBuilder<byte>();
- _relocs = new ArrayBuilder<Relocation>();
+ _data = default(ArrayBuilder<byte>);
+ _relocs = default(ArrayBuilder<Relocation>);
Alignment = 1;
- _definedSymbols = new ArrayBuilder<ISymbolDefinitionNode>();
+ _definedSymbols = default(ArrayBuilder<ISymbolDefinitionNode>);
#if DEBUG
_numReservations = 0;
_checkAllSymbolDependenciesMustBeMarked = !relocsOnly;
@@ -213,7 +213,9 @@ namespace ILCompiler.DependencyAnalysis
return ticket;
}
+#pragma warning disable CA1822 // Mark members as static
private int ReturnReservationTicket(Reservation reservation)
+#pragma warning restore CA1822 // Mark members as static
{
#if DEBUG
Debug.Assert(_numReservations > 0);
@@ -308,7 +310,7 @@ namespace ILCompiler.DependencyAnalysis
Debug.Assert(delta == 0);
// Do not vacate space for this kind of relocation, because
// the space is embedded in the instruction.
- break;
+ break;
default:
throw new NotImplementedException();
}