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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-10-23 19:22:39 +0300
committerGitHub <noreply@github.com>2017-10-23 19:22:39 +0300
commitbd7692c6ab69079fdaa543a0964fc0c1ebb17284 (patch)
tree9e1c329560ba60323800c3bd88ecba40a553d0a4 /src/ILCompiler.Compiler
parentae58977506b70800ca2c4ced423580047d89d302 (diff)
Search/replace Debug.Assert(false, => Debug.Fail( (#4782)
Diffstat (limited to 'src/ILCompiler.Compiler')
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/CompilationModuleGroup.cs2
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/CompilerTypeSystemContext.cs4
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DelegateCreationInfo.cs2
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs12
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NativeLayoutVertexNode.cs4
-rw-r--r--src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ObjectWriter.cs2
6 files changed, 13 insertions, 13 deletions
diff --git a/src/ILCompiler.Compiler/src/Compiler/CompilationModuleGroup.cs b/src/ILCompiler.Compiler/src/Compiler/CompilationModuleGroup.cs
index d3b7a34bf..294dd15d4 100644
--- a/src/ILCompiler.Compiler/src/Compiler/CompilationModuleGroup.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/CompilationModuleGroup.cs
@@ -102,7 +102,7 @@ namespace ILCompiler
public override MetadataType GetType(string nameSpace, string name, bool throwIfNotFound = true)
{
- Debug.Assert(false, "Resolving a TypeRef in the compiler generated assembly?");
+ Debug.Fail("Resolving a TypeRef in the compiler generated assembly?");
if (throwIfNotFound)
ThrowHelper.ThrowTypeLoadException(nameSpace, name, this);
diff --git a/src/ILCompiler.Compiler/src/Compiler/CompilerTypeSystemContext.cs b/src/ILCompiler.Compiler/src/Compiler/CompilerTypeSystemContext.cs
index 0feb10768..4bba98370 100644
--- a/src/ILCompiler.Compiler/src/Compiler/CompilerTypeSystemContext.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/CompilerTypeSystemContext.cs
@@ -62,7 +62,7 @@ namespace ILCompiler
}
protected override ModuleData CreateValueFromKey(EcmaModule key)
{
- Debug.Assert(false, "CreateValueFromKey not supported");
+ Debug.Fail("CreateValueFromKey not supported");
return null;
}
}
@@ -90,7 +90,7 @@ namespace ILCompiler
}
protected override ModuleData CreateValueFromKey(string key)
{
- Debug.Assert(false, "CreateValueFromKey not supported");
+ Debug.Fail("CreateValueFromKey not supported");
return null;
}
}
diff --git a/src/ILCompiler.Compiler/src/Compiler/DelegateCreationInfo.cs b/src/ILCompiler.Compiler/src/Compiler/DelegateCreationInfo.cs
index bf0915938..f7f1994fd 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DelegateCreationInfo.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DelegateCreationInfo.cs
@@ -129,7 +129,7 @@ namespace ILCompiler
return factory.RuntimeMethodHandle(TargetMethod);
case TargetKind.VTableLookup:
- Debug.Assert(false, "Need to do runtime lookup");
+ Debug.Fail("Need to do runtime lookup");
return null;
default:
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs
index 7c20b2cf8..1243d68e0 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/GenericLookupResult.cs
@@ -372,7 +372,7 @@ namespace ILCompiler.DependencyAnalysis
public override ISymbolNode GetTarget(NodeFactory factory, GenericLookupResultContext dictionary)
{
- Debug.Assert(false, "GetTarget for a FieldOffsetGenericLookupResult doesn't make sense. It isn't a pointer being emitted");
+ Debug.Fail("GetTarget for a FieldOffsetGenericLookupResult doesn't make sense. It isn't a pointer being emitted");
return null;
}
@@ -435,13 +435,13 @@ namespace ILCompiler.DependencyAnalysis
public override ISymbolNode GetTarget(NodeFactory factory, GenericLookupResultContext dictionary)
{
- Debug.Assert(false, "GetTarget for a VTableOffsetGenericLookupResult doesn't make sense. It isn't a pointer being emitted");
+ Debug.Fail("GetTarget for a VTableOffsetGenericLookupResult doesn't make sense. It isn't a pointer being emitted");
return null;
}
public override void EmitDictionaryEntry(ref ObjectDataBuilder builder, NodeFactory factory, GenericLookupResultContext dictionary, GenericDictionaryNode dictionaryNode)
{
- Debug.Assert(false, "VTableOffset contents should only be generated into generic dictionaries at runtime");
+ Debug.Fail("VTableOffset contents should only be generated into generic dictionaries at runtime");
builder.EmitNaturalInt(0);
}
@@ -1436,13 +1436,13 @@ namespace ILCompiler.DependencyAnalysis
public override ISymbolNode GetTarget(NodeFactory factory, GenericLookupResultContext dictionary)
{
- Debug.Assert(false, "GetTarget for a CallingConventionConverterLookupResult doesn't make sense. It isn't a pointer being emitted");
+ Debug.Fail("GetTarget for a CallingConventionConverterLookupResult doesn't make sense. It isn't a pointer being emitted");
return null;
}
public override void EmitDictionaryEntry(ref ObjectDataBuilder builder, NodeFactory factory, GenericLookupResultContext dictionary, GenericDictionaryNode dictionaryNode)
{
- Debug.Assert(false, "CallingConventionConverterLookupResult contents should only be generated into generic dictionaries at runtime");
+ Debug.Fail("CallingConventionConverterLookupResult contents should only be generated into generic dictionaries at runtime");
builder.EmitNaturalInt(0);
}
@@ -1499,7 +1499,7 @@ namespace ILCompiler.DependencyAnalysis
}
public override ISymbolNode GetTarget(NodeFactory factory, GenericLookupResultContext dictionary)
{
- Debug.Assert(false, "GetTarget for a TypeSizeLookupResult doesn't make sense. It isn't a pointer being emitted");
+ Debug.Fail("GetTarget for a TypeSizeLookupResult doesn't make sense. It isn't a pointer being emitted");
return null;
}
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NativeLayoutVertexNode.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NativeLayoutVertexNode.cs
index 48bbeb575..74bd816f0 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NativeLayoutVertexNode.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/NativeLayoutVertexNode.cs
@@ -440,7 +440,7 @@ namespace ILCompiler.DependencyAnalysis
}
}
- Debug.Assert(false, "UNREACHABLE");
+ Debug.Fail("UNREACHABLE");
return null;
}
}
@@ -467,7 +467,7 @@ namespace ILCompiler.DependencyAnalysis
return GetNativeWriter(factory).GetVariableTypeSignature((uint)((SignatureMethodVariable)_type).Index, true);
}
- Debug.Assert(false, "UNREACHABLE");
+ Debug.Fail("UNREACHABLE");
return null;
}
}
diff --git a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ObjectWriter.cs b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ObjectWriter.cs
index 397654398..0899f2fbb 100644
--- a/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ObjectWriter.cs
+++ b/src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ObjectWriter.cs
@@ -928,7 +928,7 @@ namespace ILCompiler.DependencyAnalysis
catch (ArgumentException)
{
ISymbolNode alreadyWrittenSymbol = _previouslyWrittenNodeNames[definedSymbol.GetMangledName(factory.NameMangler)];
- Debug.Assert(false, "Duplicate node name emitted to file",
+ Debug.Fail("Duplicate node name emitted to file",
$"Symbol {definedSymbol.GetMangledName(factory.NameMangler)} has already been written to the output object file {objectFilePath} with symbol {alreadyWrittenSymbol}");
}
}