diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-11 03:41:12 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-11 03:41:12 +0000 |
commit | 1286bc577f70c5b8caa83b2440484fbbb3b15a6e (patch) | |
tree | 98844f59716c7a4843315020a26019dfc474f054 /clang/lib/Frontend/ModuleDependencyCollector.cpp | |
parent | b6398818780314c84e796ec1d4b1dbda27ddf554 (diff) | |
download | llvm-1286bc577f70c5b8caa83b2440484fbbb3b15a6e.zip llvm-1286bc577f70c5b8caa83b2440484fbbb3b15a6e.tar.gz llvm-1286bc577f70c5b8caa83b2440484fbbb3b15a6e.tar.bz2 |
Fix undefined behavior in container swap tests.
These swap tests were swapping non-POCS non-equal allocators which
is undefined behavior. This patch changes the tests to use allocators
which compare equal. In order to test that the allocators were not
swapped I added an "id" field to test_allocator which does not
participate in equality but does propagate across copies/swaps.
This patch is based off of D26623 which was submitted by STL.
llvm-svn: 289358
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
0 files changed, 0 insertions, 0 deletions