Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initi...
[oota-llvm.git] / include / llvm / Support / SourceMgr.h
index 19dad6b6ac5366470ac2e586d413f1cb9406dbff..f9e114b67cb44f4629882179386fcc22570604c2 100644 (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.