diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-24 11:23:15 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-24 11:23:15 +0000 |
commit | 4aae4f90071f64854ec771496bd164149b0a1352 (patch) | |
tree | a79d236ff20fd5ee89e5e0081625f5780e9035af /test/MC/X86 | |
parent | a2deea1dcf8363f46bda8935283c5c701b5a278d (diff) | |
download | external_llvm-4aae4f90071f64854ec771496bd164149b0a1352.zip external_llvm-4aae4f90071f64854ec771496bd164149b0a1352.tar.gz external_llvm-4aae4f90071f64854ec771496bd164149b0a1352.tar.bz2 |
Fix a silly use-after-free issue. A much earlier version of this code
need lots of fanciness around retaining a reference to a Chain's slot in
the BlockToChain map, but that's all gone now. We can just go directly
to allocating the new chain (which will update the mapping for us) and
using it.
Somewhat gross mechanically generated test case replicates the issue
Duncan spotted when actually testing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
0 files changed, 0 insertions, 0 deletions