diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 19dad6b6ac5..f9e114b67cb 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/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.