mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Fix lldb build on Mac.
Summary:
e80f43fd78
greatly improved an API, but missed one more occurence of legacy usage.
This leads to:
if (extractor.GetHexBytes(&payload_bytes[0], payload_bytes.size(), '\xdd') != payload_bytes.size())
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/lldb/include/lldb/Utility/StringExtractor.h:151:5: note: 'GetHexBytes' declared here
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D24064
Author: Taras Tsugrii <ttsugrii@fb.com>
llvm-svn: 280202
This commit is contained in:
@@ -1099,7 +1099,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
payload_bytes.resize(ascii_hex_bytes_cstr_len/2);
|
||||
if (extractor.GetHexBytes(&payload_bytes[0], payload_bytes.size(), '\xdd') != payload_bytes.size())
|
||||
if (extractor.GetHexBytes(payload_bytes, '\xdd') != payload_bytes.size())
|
||||
{
|
||||
result.AppendErrorWithFormat ("payload data must only contain ASCII hex characters (no spaces or hex prefixes): '%s'", ascii_hex_bytes_cstr);
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
|
||||
Reference in New Issue
Block a user