[libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1
authorEric Fiselier <eric@efcs.ca>
Tue, 10 Mar 2015 00:25:20 +0000 (00:25 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 10 Mar 2015 00:25:20 +0000 (00:25 +0000)
commit21d7ffa233807fd1c0ce3fb0b9fb864e07872473
treec3f7cf83bb5a4f547d23026f8ca05133d49a4828
parent2708e52029451d9337106cbcad2e12225af1219b
[libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1

Summary: Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later.

Reviewers: titus, mclow.lists, kcc, EricWF

Reviewed By: EricWF

Subscribers: mclow.lists, cfe-commits

Differential Revision: http://reviews.llvm.org/D8172

llvm-svn: 231729
libcxx/include/vector
libcxx/test/std/containers/sequences/vector/asan_throw.pass.cpp