summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Disassembler/Sparc
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-06-09 22:26:20 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-06-09 22:26:20 +0000
commit669fc86ed0a421b8931e0bde5d41ece76e29a740 (patch)
tree0ca9870ed379d9adba78958a00ffacef3163d8ab /llvm/test/MC/Disassembler/Sparc
parentf0d1fd6b32f4781f53286c165c8e9578ec40144c (diff)
downloadbcm5719-llvm-669fc86ed0a421b8931e0bde5d41ece76e29a740.tar.gz
bcm5719-llvm-669fc86ed0a421b8931e0bde5d41ece76e29a740.zip
SmallVector: support resize(N) with move-only types
Unfortunately there's no way to elegantly do this with pre-canned algorithms. Using a generating iterator doesn't work because you default construct for each element, then move construct into the actual slot (bad for copy but non-movable types, and a little unneeded overhead even in the move-only case), so just write it out manually. This solution isn't exception safe (if one of the element's ctors calls we don't fall back, destroy the constructed elements, and throw on - which std::uninitialized_fill does do) but SmallVector (and LLVM) isn't exception safe anyway. llvm-svn: 210495
Diffstat (limited to 'llvm/test/MC/Disassembler/Sparc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud