Add an explicit move constructor to SrcBuffer

MSVC can't synthesize the explicit one.  Instead it tries to emit a copy
ctor which would call the deleted copy ctor of unique_ptr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner 2014-08-21 23:24:08 +00:00
parent 5e34dffb9c
commit a79efd7469

View File

@ -51,6 +51,11 @@ private:
/// This is the location of the parent include, or null if at the top level.
SMLoc IncludeLoc;
SrcBuffer() {}
SrcBuffer(SrcBuffer &&O)
: Buffer(std::move(O.Buffer)), IncludeLoc(O.IncludeLoc) {}
};
/// This is all of the buffers that we are reading from.