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:
authorSamuel Arzt <arzt.samuel@live.de>2017-12-17 01:22:17 +0300
committerJan Kotas <jkotas@microsoft.com>2017-12-17 01:22:17 +0300
commit7df43adf895dab48f8764c3733a2f74d204923be (patch)
tree269e237ec5a22e63e3df6b0e10bd3014edc836e2 /src/ILCompiler.CppCodeGen
parentefab81562924f93a2e72d41a70391996a6acae5c (diff)
[ILVerify] Implement tail-ret and invalid method end verification (#5122)
* Implemented tail-ret sequence verification. * Added test cases for tail-ret sequence. * Fixed ILImporter not calling EndImportingInstruction when returning from switch. * Added ReportMethodEndInsideInstruction to ILImporter. * Changed ReportMethodEndInsideInstruction to be reported inside FindJumpTargets. * Added additional tail-ret tests. * Changed tail-ret verification to be done in ImportCall. * Changed ReportMethodEndInsideInstruction to be reported for all il stream read operations.
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r--src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
index 66eeb22f0..1b88ec3ea 100644
--- a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
+++ b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs
@@ -2753,6 +2753,11 @@ namespace Internal.IL
ThrowHelper.ThrowInvalidProgramException();
}
+ private void ReportMethodEndInsideInstruction()
+ {
+ ThrowHelper.ThrowInvalidProgramException();
+ }
+
private void ReportInvalidInstruction(ILOpcode opcode)
{
ThrowHelper.ThrowInvalidProgramException();