From 05f452d9a11c2d9a4f37db6833908c1e2e751172 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Wed, 8 Jun 2016 17:56:35 +0000 Subject: [PATCH] Attempt #2 to appease the buildbots. MSVC calls the copy ctor on StratifiedSets for some reason. So, undelete it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272184 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/StratifiedSets.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Analysis/StratifiedSets.h b/lib/Analysis/StratifiedSets.h index d4cdbdb4fb1..ae1befbdf95 100644 --- a/lib/Analysis/StratifiedSets.h +++ b/lib/Analysis/StratifiedSets.h @@ -94,9 +94,9 @@ struct StratifiedLink { template class StratifiedSets { public: StratifiedSets() = default; - // If we have a need to copy these at some point, it's fine to default this. - // At the time of writing, copying StratifiedSets is always a perf bug. - StratifiedSets(const StratifiedSets &) = delete; + + // TODO: Figure out how to make MSVC not call the copy ctor here, and delete + // it. // Can't default these due to compile errors in MSVC2013 StratifiedSets(StratifiedSets &&Other) { *this = std::move(Other); }