[llvm] r282369 - Attempt to appease MSVC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 25 17:00:51 PDT 2016
Author: sanjoy
Date: Sun Sep 25 19:00:51 2016
New Revision: 282369
URL: http://llvm.org/viewvc/llvm-project?rev=282369&view=rev
Log:
Attempt to appease MSVC
... by explicitly deleting the copy constructor.
Modified:
llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=282369&r1=282368&r2=282369&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Sun Sep 25 19:00:51 2016
@@ -594,6 +594,11 @@ private:
std::unique_ptr<SCEVUnionPredicate> 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<EdgeExitInfo> ExitCounts, bool Complete,
const SCEV *MaxCount);
More information about the llvm-commits
mailing list