Remove illegal `delete` of `Instr` objects (#38831)
authorBruce Forstall <brucefo@microsoft.com>
Tue, 7 Jul 2020 23:26:21 +0000 (16:26 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Jul 2020 23:26:21 +0000 (16:26 -0700)
commit579d243ffb0f76e58f2774aae2eb907ec02e074c
treeecbb31c52e288af23bc13171e0990406de0fa6b6
parent55f006f2565bebe1863a583a6707bdecbcba45c0
Remove illegal `delete` of `Instr` objects (#38831)

`Instr` objects come from a static pool and should not be deleted
with `delete`. Instead, they are marked no longer used by setting
their `opcode` field to -1.

Fixes #12433
src/coreclr/src/ilasm/assembler.cpp