diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-10-23 19:22:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 19:22:39 +0300 |
commit | bd7692c6ab69079fdaa543a0964fc0c1ebb17284 (patch) | |
tree | 9e1c329560ba60323800c3bd88ecba40a553d0a4 /src/ILCompiler.CppCodeGen | |
parent | ae58977506b70800ca2c4ced423580047d89d302 (diff) |
Search/replace Debug.Assert(false, => Debug.Fail( (#4782)
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r-- | src/ILCompiler.CppCodeGen/src/CppCodeGen/EvaluationStack.cs | 2 | ||||
-rw-r--r-- | src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs | 2 |
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) |