Skip to content

Commit

Permalink
Skip unknown custom metadata altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed Nov 13, 2014
1 parent bad17e3 commit d33d514
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions symbols/pdb/Microsoft.Cci.Pdb/PdbFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,7 @@ internal class PdbFunction {
case 2: break; // this.ReadForwardedToModuleInfo(bits); break;
case 3: this.ReadIteratorLocals(bits); break;
case 4: this.ReadForwardIterator(bits); break;
case 5: break; //skip dynamic locals until cci is fixed https://roslyn.codeplex.com/workitem/54
default: throw new PdbDebugException("Unknown custom metadata item kind: {0}", kind);
// TODO: handle unknown custom metadata, 5 & 6 are new with roslyn, see https://roslyn.codeplex.com/workitem/54
}
bits.Position = savedPosition+(int)numberOfBytesInItem;
}
Expand Down

0 comments on commit d33d514

Please sign in to comment.