[LLDB] Address post-commit code review feedback.

This patch addresses Adrian McCarthy's code review feedback in
https://reviews.llvm.org/D66447

llvm-svn: 369731
This commit is contained in:
Jonas Devlieghere 2019-08-23 04:11:38 +00:00
parent 2a52583d67
commit 6c9dc12caa
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
#include <cstring>
char8_t a = u8'a';
const char8_t* ab = u8"你好";
char8_t abc[9] = u8"你好";

View File

@ -1390,9 +1390,9 @@ CompilerType ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize(
if (type_name) {
if (streq(type_name, "char16_t"))
return CompilerType(this, ast->Char16Ty.getAsOpaquePtr());
else if (streq(type_name, "char32_t"))
if (streq(type_name, "char32_t"))
return CompilerType(this, ast->Char32Ty.getAsOpaquePtr());
else if (streq(type_name, "char8_t"))
if (streq(type_name, "char8_t"))
return CompilerType(this, ast->Char8Ty.getAsOpaquePtr());
}
break;