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)
commit4c96a5ef1c3cc45105b3b4ea21bb0835f721bb5f
tree403db304e201269a570a7b21329db4fa726df4c3
parente86d51533d43a6d73692ddb16a061af263912ae5
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.

llvm-svn: 244241
clang/utils/TableGen/NeonEmitter.cpp