mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
461ad5951b
vec.insert(vec.begin(), vec[3]); The issue was that vec[3] returns a reference into the vector, which is invalidated when insert() memmove's the elements down to make space. The method needs to specifically detect and handle this case to correctly match std::vector's semantics. Thanks to Howard Hinnant for clarifying the correct behavior, and explaining how std::vector solves this problem. llvm-svn: 134554 |
||
---|---|---|
.. | ||
ADT | ||
Analysis | ||
ExecutionEngine | ||
Support | ||
Transforms | ||
VMCore | ||
CMakeLists.txt | ||
Makefile | ||
Makefile.unittest |