aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectRegexCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectRegexCommand.cpp b/lldb/source/Commands/CommandObjectRegexCommand.cpp
index f638d70..7e27915 100644
--- a/lldb/source/Commands/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Commands/CommandObjectRegexCommand.cpp
@@ -51,7 +51,7 @@ llvm::Expected<std::string> CommandObjectRegexCommand::SubstituteVariables(
output << part;
}
- return output.str();
+ return buffer;
}
void CommandObjectRegexCommand::DoExecute(llvm::StringRef command,