diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs index 3c2c08c0005c33..663125672b1af8 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs @@ -331,7 +331,6 @@ internal override VTableSliceNode GetSlice(TypeDesc type) // On the path, you'll find a node that exists in both graphs, but it's predecessor // only exists in the compiler's graph. That's the place to focus the investigation on. // Use the ILCompiler-DependencyGraph-Viewer tool to investigate. - Debug.Assert(false); string typeName = ExceptionTypeNameFormatter.Instance.FormatName(type); throw new ScannerFailedException($"VTable of type '{typeName}' not computed by the IL scanner."); } @@ -433,7 +432,6 @@ private PrecomputedDictionaryLayoutNode GetPrecomputedLayout(TypeSystemEntity me // On the path, you'll find a node that exists in both graphs, but it's predecessor // only exists in the compiler's graph. That's the place to focus the investigation on. // Use the ILCompiler-DependencyGraph-Viewer tool to investigate. - Debug.Assert(false); throw new ScannerFailedException($"Dictionary layout of '{methodOrType}' was not computed by the IL scanner."); } return new PrecomputedDictionaryLayoutNode(methodOrType, layout.Slots, layout.DiscardedSlots);