mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
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:
parent
5e34dffb9c
commit
a79efd7469
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user