diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-12 17:11:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-12 17:11:58 +0000 |
commit | e8ee3f2cda32818f30004226f7d8d27bada9b509 (patch) | |
tree | 9c4821bc4b36c361c67eee7265a55f42f794f829 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 591dc84101228dc391fca05193be5870ec661edc (diff) |
Fix debug info encodings for char16_t and char32_t.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 409a66b28f..0b2bb61e90 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -333,9 +333,9 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { case BuiltinType::UChar: case BuiltinType::Char_U: Encoding = llvm::dwarf::DW_ATE_unsigned_char; break; case BuiltinType::Char_S: - case BuiltinType::Char16: - case BuiltinType::Char32: case BuiltinType::SChar: Encoding = llvm::dwarf::DW_ATE_signed_char; break; + case BuiltinType::Char16: + case BuiltinType::Char32: Encoding = llvm::dwarf::DW_ATE_UTF; break; case BuiltinType::UShort: case BuiltinType::UInt: case BuiltinType::UInt128: |