File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1010#include < iomanip>
1111#include < optional>
1212
13- #include " lldb/Host/Editline.h"
14-
15- #include < codecvt>
16-
1713#include " lldb/Host/ConnectionFileDescriptor.h"
14+ #include " lldb/Host/Editline.h"
1815#include " lldb/Host/FileSystem.h"
1916#include " lldb/Host/Host.h"
2017#include " lldb/Utility/CompletionRequest.h"
@@ -1587,12 +1584,11 @@ bool Editline::CompleteCharacter(char ch, EditLineGetCharType &out) {
15871584 llvm::SmallString<4 > input;
15881585 for (;;) {
15891586 input.push_back (ch);
1590- const char *cur_ptr = input.begin ();
1591- const char *end_ptr = input.end ();
1587+ auto *cur_ptr = reinterpret_cast < const llvm::UTF8 *>( input.begin () );
1588+ auto *end_ptr = reinterpret_cast < const llvm::UTF8 *>( input.end () );
15921589 llvm::UTF32 code_point = 0 ;
15931590 llvm::ConversionResult cr = llvm::convertUTF8Sequence (
1594- (const llvm::UTF8 **)&cur_ptr, (const llvm::UTF8 *)end_ptr, &code_point,
1595- llvm::lenientConversion);
1591+ &cur_ptr, end_ptr, &code_point, llvm::lenientConversion);
15961592 switch (cr) {
15971593 case llvm::conversionOK:
15981594 out = code_point;
You can’t perform that action at this time.
0 commit comments