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.CppCodeGen
parentae58977506b70800ca2c4ced423580047d89d302 (diff)
Search/replace Debug.Assert(false, => Debug.Fail( (#4782)
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r--src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs2
-rw-r--r--src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs b/src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs
index 20ed6831a..feaf2ed2d 100644
--- a/src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs
+++ b/src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs
@@ -503,7 +503,7 @@ namespace Internal.IL
public override void Append(CppGenerationBuffer _builder)
{
_builder.Append("// FIXME: An invalid value was pushed onto the evaluation stack.");
- Debug.Assert(false, "Invalid stack values shouldn't be appended.");
+ Debug.Fail("Invalid stack values shouldn't be appended.");
}
public override StackEntry Duplicate()
diff --git a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
index 5f00beab4..a5cb3746e 100644
--- a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
+++ b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
@@ -1723,7 +1723,7 @@ namespace Internal.IL
case ILOpcode.mul_ovf: op = "*"; break;
case ILOpcode.mul_ovf_un: op = "*"; unsigned = true; break;
- default: Debug.Assert(false, "Unexpected opcode"); break;
+ default: Debug.Fail("Unexpected opcode"); break;
}
if (kind == StackValueKind.ByRef)