This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1
ClosedPublic

Authored by EricWF on Mar 9 2015, 9:13 AM.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 21491.Mar 9 2015, 9:13 AM
EricWF retitled this revision from to [libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1.
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added reviewers: mclow.lists, kcc, titus.
EricWF added subscribers: Unknown Object (MLST), mclow.lists.
kcc edited edge metadata.Mar 9 2015, 1:41 PM

Seems fine, but is it possible to add a test to
test/std/containers/sequences/vector/asan_throw.pass.cc
that will fail w/o this fix?

mclow.lists edited edge metadata.Mar 9 2015, 2:12 PM

This looks good to me, but I like Kostya's comments about a test.

EricWF updated this revision to Diff 21520.Mar 9 2015, 2:57 PM
EricWF edited edge metadata.

Added a test case but I don't think it should be committed. It only fails because of an assertion in __sanitizer_annotate_contiguous_container.

kcc added a comment.Mar 9 2015, 4:07 PM

Assuming the test fails (or asan asserts) w/o the fix and the test passes w/ the fix -- looks great.

EricWF accepted this revision.Mar 9 2015, 5:21 PM
EricWF added a reviewer: EricWF.

Accepting.

This revision is now accepted and ready to land.Mar 9 2015, 5:21 PM
EricWF closed this revision.Mar 9 2015, 5:27 PM