Address a memory leak in 254760
authorPhilip Reames <listmail@philipreames.com>
Fri, 4 Dec 2015 23:06:33 +0000 (23:06 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 4 Dec 2015 23:06:33 +0000 (23:06 +0000)
commit9ac3ec43b3eb2c18007542c1fe43d93519606c32
tree6a502119c1f82131c5936215c1c248c16735bcb3
parenta026cdc11a64e7c87b44d09a53c72fdf9e2163ea
Address a memory leak in 254760

The issue appears to have been that the copy constructor of the SmallVector was being invoked and this was somehow leading to leaked memory.  This patch avoids the symptom, but likely doesn't address the underlying problem.  I'm still investigating the root cause, but wanted to avoid the memory leak in the mean time.  Even with the underlying fix, avoiding the redundant allocation is worthwhile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254795 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/LegacyPassManagers.h