Skip to content

Commit dac7b1c

Browse files
committed
Address Pavel's feedback
1 parent de19f43 commit dac7b1c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lldb/source/Host/common/Editline.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
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;

0 commit comments

Comments
 (0)