Remove an assert in AssemblySpec::EmitToken
authorJohn Chen (CLR) <jochen@microsoft.com>
Thu, 5 May 2016 06:11:15 +0000 (23:11 -0700)
committerJohn Chen (CLR) <jochen@microsoft.com>
Thu, 5 May 2016 06:11:15 +0000 (23:11 -0700)
commitd94dbe707495ed126f8b252b0b0eda910557de6d
tree7b34c455e9a072a8800e43b08b40f8c23cd5fae4
parentf51e442379d73903514dedcf3f987fe5f4a9e87a
Remove an assert in AssemblySpec::EmitToken

AssemblySpec::EmitToken has a PRECONDITION that prohibits emitting AssemblyRef
tokens to WinMD files, except inside CrossGen. However, there are scenarios,
such as XML serialization, that need to emit such tokens. Thus this PRECONDITION
is removed.

Commit migrated from https://github.com/dotnet/coreclr/commit/c377b53dca090869ea10d95fe7098e70ac3c0847
src/coreclr/src/vm/assemblyspec.cpp