r299983 - [ExternalASTMerger] Removed a move constructor to address MSVC build failure
Sean Callanan via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 11 13:51:21 PDT 2017
Author: spyffe
Date: Tue Apr 11 15:51:21 2017
New Revision: 299983
URL: http://llvm.org/viewvc/llvm-project?rev=299983&view=rev
Log:
[ExternalASTMerger] Removed a move constructor to address MSVC build failure
Modified:
cfe/trunk/lib/AST/ExternalASTMerger.cpp
Modified: cfe/trunk/lib/AST/ExternalASTMerger.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExternalASTMerger.cpp?rev=299983&r1=299982&r2=299983&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExternalASTMerger.cpp (original)
+++ cfe/trunk/lib/AST/ExternalASTMerger.cpp Tue Apr 11 15:51:21 2017
@@ -23,7 +23,7 @@ namespace {
template <typename T> struct Source {
T t;
- Source(T &&t) : t(std::move(t)) {}
+ Source(T t) : t(t) {}
operator T() { return t; }
template <typename U = T> U &get() { return t; }
template <typename U = T> const U &get() const { return t; }
More information about the cfe-commits
mailing list