diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-08-21 23:24:08 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-08-21 23:24:08 +0000 |
commit | e42e4655ee45e434cb9ac2a8836f9a6afec8cf6e (patch) | |
tree | 61fc0ab170366f62dcbbb7a6ad2f75df769014ec | |
parent | 6fd86771f2024d9d7bba770e789e9a287b2c9f7c (diff) | |
download | bcm5719-llvm-e42e4655ee45e434cb9ac2a8836f9a6afec8cf6e.tar.gz bcm5719-llvm-e42e4655ee45e434cb9ac2a8836f9a6afec8cf6e.zip |
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.
llvm-svn: 216244
-rw-r--r-- | llvm/include/llvm/Support/SourceMgr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h index 19dad6b6ac5..f9e114b67cb 100644 --- a/llvm/include/llvm/Support/SourceMgr.h +++ b/llvm/include/llvm/Support/SourceMgr.h @@ -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. |