1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/unittests
Owen Anderson 461ad5951b Fix a subtle issue in SmallVector. The following code did not work as expected:
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
2011-07-06 22:36:59 +00:00
..
ADT Fix a subtle issue in SmallVector. The following code did not work as expected: 2011-07-06 22:36:59 +00:00
Analysis Make SCEVUnknown a CallbackVH, so that it can be notified directly 2010-08-02 23:49:30 +00:00
ExecutionEngine add some #includes that will soon be needed. 2011-06-16 21:36:36 +00:00
Support Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang! 2011-06-22 21:13:46 +00:00
Transforms Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
VMCore Revamp the "ConstantStruct::get" methods. Previously, these were scattered 2011-06-20 04:01:31 +00:00
CMakeLists.txt Add unit tests for ADT/PackedVector 2011-06-15 19:19:09 +00:00
Makefile Merge System into Support. 2010-11-29 18:16:10 +00:00
Makefile.unittest build: Add MAKEFILE_UNITTEST_NO_INCLUDE_COMMON build variable, to be leveraged 2011-02-04 17:12:18 +00:00