]> granicus.if.org Git - clang/commit
Fix memory ownership in the NeonEmitter by using values instead of pointers (smart...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 6 Aug 2015 18:29:32 +0000 (18:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 6 Aug 2015 18:29:32 +0000 (18:29 +0000)
commit2cdd8a6534f656e6309b9bcfa4a60592f0ace1da
tree33545563b83f09aec969463d0902004d4da7e726
parentaca4fe314a55cacae29e1548cb7bfd2119c6df4c
Fix memory ownership in the NeonEmitter by using values instead of pointers (smart or otherwise)

Improvement to the memory leak fix in 244196.

Address validity is required for the Intrinsic objects, but since the
collections only ever grow (no elements are removed), deque provides
sufficient guarantees (that the objects will never be reallocated/moved
around) for this use case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244241 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/NeonEmitter.cpp