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

IL code is messed up on Attribute copy #19

Closed
reflection-emit opened this issue Feb 21, 2017 · 2 comments
Closed

IL code is messed up on Attribute copy #19

reflection-emit opened this issue Feb 21, 2017 · 2 comments
Assignees
Labels

Comments

@reflection-emit
Copy link
Collaborator

IL code is messed up if an attribute is copied to the actual code... If the attribute constructor has param arrays.

@reflection-emit
Copy link
Collaborator Author

reflection-emit commented Feb 21, 2017

Weaver created this

	IL_002e: ldc.i4.4
	IL_002f: ldc.i4.0
	IL_0030: newarr [mscorlib]System.Type
	IL_0035: dup
	IL_0036: newobj instance void 

instead of this

	IL_0001: ldc.i4.4
	IL_0002: call !!0[] [mscorlib]System.Array::Empty<class [mscorlib]System.Type>()
	IL_0007: newobj instance void [

@reflection-emit
Copy link
Collaborator Author

fixed in 1.1.0

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

No branches or pull requests

1 participant