diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-11-19 22:20:20 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-11-19 22:20:20 +0000 |
commit | 8bc4a0ba147f2bc0508313b6c41bb03fd564cd4e (patch) | |
tree | c4c8dfed8581e05704b30dfb0d2623a17df666d5 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 5f7c48ebff2c661e024e4d36fd4687d0c2bade4c (diff) | |
download | llvm-8bc4a0ba147f2bc0508313b6c41bb03fd564cd4e.zip llvm-8bc4a0ba147f2bc0508313b6c41bb03fd564cd4e.tar.gz llvm-8bc4a0ba147f2bc0508313b6c41bb03fd564cd4e.tar.bz2 |
SLPVectorizer: Fix stale for Value pointer array
We are slicing an array of Value pointers and process those slices in a loop.
The problem is that we might invalidate a later slice by vectorizing a former
slice.
Use a WeakVH to track the pointer. If the pointer is deleted or RAUW'ed we can
tell.
The test case will only fail when running with libgmalloc.
radar://15498655
llvm-svn: 195162
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions