Skip to content

Commit

Permalink
Remove modifiers before checking whether it's pinned
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Nov 9, 2012
1 parent 319d0cb commit 0a61af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AssemblyData/methodsrewriter/CodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void initInstrToIndex() {
void initLocals() {
locals = new List<LocalBuilder>();
foreach (var local in methodInfo.methodDef.Body.LocalList)
locals.Add(ilg.DeclareLocal(Resolver.getRtType(local.Type), local.Type.IsPinned));
locals.Add(ilg.DeclareLocal(Resolver.getRtType(local.Type), local.Type.RemoveModifiers().IsPinned));
tempObjLocal = ilg.DeclareLocal(typeof(object));
tempObjArrayLocal = ilg.DeclareLocal(typeof(object[]));
}
Expand Down

0 comments on commit 0a61af3

Please sign in to comment.