summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Args.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-08 22:23:50 +0000
committerZachary Turner <zturner@google.com>2016-11-08 22:23:50 +0000
commitcb3c9f6c749c6ec76b328c2a405b79430868ef23 (patch)
tree89e47ff53028cf6e308439ffb7538e95c05f56c7 /lldb/source/Interpreter/Args.cpp
parent3502f2089c216ece680eab79a90d90fe9109e1f1 (diff)
downloadbcm5719-llvm-cb3c9f6c749c6ec76b328c2a405b79430868ef23.tar.gz
bcm5719-llvm-cb3c9f6c749c6ec76b328c2a405b79430868ef23.zip
Fix some cases where we were printf'ing StringRefs.
llvm-svn: 286303
Diffstat (limited to 'lldb/source/Interpreter/Args.cpp')
-rw-r--r--lldb/source/Interpreter/Args.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index a0a300affdd..a2f18882b0e 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -612,7 +612,7 @@ lldb::addr_t Args::StringToAddress(const ExecutionContext *exe_ctx,
error_ptr->SetErrorStringWithFormat(
"address expression \"%s\" resulted in a value whose type "
"can't be converted to an address: %s",
- s, valobj_sp->GetTypeName().GetCString());
+ s.str().c_str(), valobj_sp->GetTypeName().GetCString());
}
}
@@ -654,14 +654,14 @@ lldb::addr_t Args::StringToAddress(const ExecutionContext *exe_ctx,
if (error_ptr) {
error_set = true;
error_ptr->SetErrorStringWithFormat(
- "address expression \"%s\" evaluation failed", s);
+ "address expression \"%s\" evaluation failed", s.str().c_str());
}
}
if (error_ptr) {
if (!error_set)
error_ptr->SetErrorStringWithFormat("invalid address expression \"%s\"",
- s);
+ s.str().c_str());
}
return fail_value;
}
OpenPOWER on IntegriCloud