Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd verification exception with simple disassembled Func. #18

Open
JasonPunyon opened this issue Jun 21, 2014 · 3 comments
Open

Odd verification exception with simple disassembled Func. #18

JasonPunyon opened this issue Jun 21, 2014 · 3 comments

Comments

@JasonPunyon
Copy link
Contributor

This throws a SigilVerificationException with the message:

CallVirtual expected a System.Object; found System.Guid*

@JasonPunyon
Copy link
Contributor Author

Hmm. The actual IL looks like this:

b__0: IL_0000: nop IL_0001: call System.Guid.NewGuid IL_0006: stloc.1 // CS$0$0001 IL_0007: ldloca.s 01 // CS$0$0001 IL_0009: constrained. System.Guid IL_000F: callvirt System.Object.ToString IL_0014: stloc.0 // CS$1$0000 IL_0015: br.s IL_0017 IL_0017: ldloc.0 // CS$1$0000 IL_0018: ret

The disassembled IL is missing the constrained instruction.

@kevin-montrose
Copy link
Owner

Oooo, constrained prefix, that'll be a fun one.

@JasonPunyon
Copy link
Contributor Author

Yeah, I read that, and I read the code, and it seems like you're doing what you're supposed to be doing (I see you adding the prefix, it just never shows up in the stream)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants