Skip to content

Commit 04fea01

Browse files
author
Matej Košík
committed
[lldb] Fix the TypeSystemClang::GetBasicTypeEnumeration wrt. 128-bit integer types
1 parent 631f260 commit 04fea01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ lldb::BasicType TypeSystemClang::GetBasicTypeEnumeration(llvm::StringRef name) {
849849
{"unsigned long long int", eBasicTypeUnsignedLongLong},
850850

851851
// "int128"
852-
{"__int128_t", eBasicTypeInt128},
853-
{"__uint128_t", eBasicTypeUnsignedInt128},
852+
{"__int128", eBasicTypeInt128},
853+
{"unsigned __int128", eBasicTypeUnsignedInt128},
854854

855855
// "bool"
856856
{"bool", eBasicTypeBool},

lldb/unittests/Symbol/TestTypeSystemClang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ TEST_F(TestTypeSystemClang, TestGetBasicTypeFromName) {
159159
GetBasicQualType("unsigned long long"));
160160
EXPECT_EQ(GetBasicQualType(eBasicTypeUnsignedLongLong),
161161
GetBasicQualType("unsigned long long int"));
162-
EXPECT_EQ(GetBasicQualType(eBasicTypeInt128), GetBasicQualType("__int128_t"));
162+
EXPECT_EQ(GetBasicQualType(eBasicTypeInt128), GetBasicQualType("__int128"));
163163
EXPECT_EQ(GetBasicQualType(eBasicTypeUnsignedInt128),
164-
GetBasicQualType("__uint128_t"));
164+
GetBasicQualType("unsigned __int128"));
165165
EXPECT_EQ(GetBasicQualType(eBasicTypeVoid), GetBasicQualType("void"));
166166
EXPECT_EQ(GetBasicQualType(eBasicTypeBool), GetBasicQualType("bool"));
167167
EXPECT_EQ(GetBasicQualType(eBasicTypeFloat), GetBasicQualType("float"));

0 commit comments

Comments
 (0)