From: Sanjoy Das Date: Mon, 26 Sep 2016 00:00:51 +0000 (+0000) Subject: Attempt to appease MSVC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6b6f3a7157ab59e3f4679225aaa49b4668193ab;p=llvm Attempt to appease MSVC ... by explicitly deleting the copy constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282369 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 830334db691..cd917b74037 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -594,6 +594,11 @@ private: std::unique_ptr Predicate) : ExitingBlock(ExitingBlock), ExactNotTaken(ExactNotTaken), Predicate(std::move(Predicate)) {} + + // Clang builds fine without this, but MSVC does not. + ExitNotTakenInfo(const ExitNotTakenInfo &) = delete; + ExitNotTakenInfo(ExitNotTakenInfo &&) = default; + ExitNotTakenInfo &operator=(ExitNotTakenInfo &&) = default; }; /// Information about the backedge-taken count of a loop. This currently @@ -622,6 +627,10 @@ private: public: BackedgeTakenInfo() : MaxAndComplete(nullptr, 0) {} + BackedgeTakenInfo(const BackedgeTakenInfo &) = delete; + BackedgeTakenInfo(BackedgeTakenInfo &&) = default; + BackedgeTakenInfo &operator=(BackedgeTakenInfo &&) = default; + /// Initialize BackedgeTakenInfo from a list of exact exit counts. BackedgeTakenInfo(ArrayRef ExitCounts, bool Complete, const SCEV *MaxCount);