[llvm-bugs] [Bug 24399] custom-line-table.test failing on Windows 7 x64 Visual C++

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 8 14:14:57 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24399

Yaron Keren <yaron.keren at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Yaron Keren <yaron.keren at gmail.com> ---
r244405

Fix dangling reference in DwarfLinker.cpp. The original code

  Seq.emplace_back(Seq.back());

does not work as planned, since Seq.back() may become a dangling reference
when emplace_back is called and possibly reallocates vector. To avoid this,
the vector allocation should be reserved first and only then used.

This broke test/tools/dsymutil/X86/custom-line-table.test with Visual C++ 2013.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150808/e6b9a9d7/attachment.html>


More information about the llvm-bugs mailing list