diff options
Diffstat (limited to 'llvm/include/llvm/Support/SmallVectorMemoryBuffer.h')
-rw-r--r-- | llvm/include/llvm/Support/SmallVectorMemoryBuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/SmallVectorMemoryBuffer.h b/llvm/include/llvm/Support/SmallVectorMemoryBuffer.h index b63b58e3a8ba..62900b740b81 100644 --- a/llvm/include/llvm/Support/SmallVectorMemoryBuffer.h +++ b/llvm/include/llvm/Support/SmallVectorMemoryBuffer.h @@ -44,7 +44,7 @@ public: /// Construct a named SmallVectorMemoryBuffer from the given /// SmallVector r-value and StringRef. SmallVectorMemoryBuffer(SmallVectorImpl<char> &&SV, StringRef Name) - : SV(std::move(SV)), BufferName(Name) { + : SV(std::move(SV)), BufferName(std::string(Name)) { init(this->SV.begin(), this->SV.end(), false); } |