diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-12 19:01:46 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-13 10:42:21 +0000 |
commit | 3ba0ab113cd81705a3e5962ba807f30656987935 (patch) | |
tree | 9fb587dcb8b0c14aeeaf261bff340a95841ff85c /utils/GraphUtils.h | |
parent | 05045c1e052dbba4e44bf0bb8ead3e9b5220d04e (diff) | |
download | ComputeLibrary-3ba0ab113cd81705a3e5962ba807f30656987935.tar.gz |
COMPMID-1710: Avoid undefined behavior in GCC 8.2
Undefined behavior when pushing object which contain unique_ptr to a
vector container. Vector dynamic resizing was making all the unique_ptr
members of the inserted objects up to this point invalid.
As a workaround, memory is reserved to avoid vector reallocation.
Change-Id: I74f7641a7f36981ebe51720a924b865bb7f54c91
Reviewed-on: https://review.mlplatform.org/390
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Diffstat (limited to 'utils/GraphUtils.h')
0 files changed, 0 insertions, 0 deletions