Fix memory corruption. If one of the SCEV creation functions calls another but
authorNick Lewycky <nicholas@mxc.ca>
Wed, 26 Jan 2011 08:40:22 +0000 (08:40 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 26 Jan 2011 08:40:22 +0000 (08:40 +0000)
commite19b7b80bd1bf48f9a6f036cf1cbc5f65445090a
treed19d53a1d8e2fb3c549070c355a7e6152b50b911
parent5d83955b8c2bdca28d0a0c62a9d0f9bbd5a6d668
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