Fix memory corruption. If one of the SCEV creation functions calls another but
commitcb558c87582779365c22b0ef179719621e15697a
authorNick Lewycky <nicholas@mxc.ca>
Wed, 26 Jan 2011 08:40:22 +0000 (26 08:40 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 26 Jan 2011 08:40:22 +0000 (26 08:40 +0000)
treed19d53a1d8e2fb3c549070c355a7e6152b50b911
parentd1b1d9a6a8dc76320a63bcea406fc02a07e850d3
Fix memory corruption. If one of the SCEV creation functions calls another but
doesn't return immediately after then the insert position in UniqueSCEVs will
be out of date. No test because this is a memory corruption issue. Fixes PR9051!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp