From 1777ed92671bcad110cc73a8c7607d701300d459 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Thu, 5 Mar 2020 11:37:20 -0800 Subject: [PATCH] Fix an assert in ReadyToRunReader constructor (#33203) --- .../ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs b/src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs index 983a624d43ede..2536ca13516bc 100644 --- a/src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs +++ b/src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs @@ -385,6 +385,7 @@ private unsafe void Initialize(MetadataReader metadata) DirectoryEntry r2rHeaderDirectory = PEReader.PEHeaders.CorHeader.ManagedNativeHeaderDirectory; _readyToRunHeaderRVA = r2rHeaderDirectory.RelativeVirtualAddress; + Debug.Assert(!Composite); } else if (!TryLocateNativeReadyToRunHeader()) {