Fix crash when when do lto on Bullet. Dynamic GEPs in SROA were incorrectly being...
authorPete Cooper <peter_cooper@apple.com>
Fri, 10 Aug 2012 03:26:36 +0000 (03:26 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 10 Aug 2012 03:26:36 +0000 (03:26 +0000)
commit3eeba88631db6da7d45df67f677556297bd93f75
tree1e67ecc8219d5c709e7766646ef6cf9bc12c3509
parent15121ca0d18e6a0f6a16f8a696f4efc3782dc965
Fix crash when when do lto on Bullet.  Dynamic GEPs in SROA were incorrectly being applied to all accesses to an alloca, not just the ones which read from the GEP.  Thanks to Evan for reducing the test.  rdar://11861001

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/crash.ll