]> granicus.if.org Git - llvm/commitdiff
[SCEV] Assign LoopPropertiesCache in the move constructor
authorSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 26 Sep 2016 02:44:10 +0000 (02:44 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 26 Sep 2016 02:44:10 +0000 (02:44 +0000)
In a previous change I collapsed two different caches into one.  When
doing that I noticed that ScalarEvolution's move constructor was not
moving those caches.

To keep the previous change simple, I've moved that bugfix into this
separate change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282376 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index af23effcaf2b8570496c376cfa9885c4d150625b..ea7c17db973dd3657c22962ffde712a1c621d73a 100644 (file)
@@ -9586,6 +9586,7 @@ ScalarEvolution::ScalarEvolution(ScalarEvolution &&Arg)
       ValuesAtScopes(std::move(Arg.ValuesAtScopes)),
       LoopDispositions(std::move(Arg.LoopDispositions)),
       BlockDispositions(std::move(Arg.BlockDispositions)),
+      LoopPropertiesCache(std::move(Arg.LoopPropertiesCache)),
       UnsignedRanges(std::move(Arg.UnsignedRanges)),
       SignedRanges(std::move(Arg.SignedRanges)),
       UniqueSCEVs(std::move(Arg.UniqueSCEVs)),