Skip to content

Commit 70b8022

Browse files
committed
[lldb][Swift] Adjust IsFloatingPointType to upstream changes
1 parent d03c2e4 commit 70b8022

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwift.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,9 @@ void TypeSystemSwift::Dump(llvm::raw_ostream &output, llvm::StringRef filter) {
120120
}
121121

122122
bool TypeSystemSwift::IsFloatingPointType(opaque_compiler_type_t type,
123-
uint32_t &count, bool &is_complex) {
124-
count = 0;
123+
bool &is_complex) {
125124
is_complex = false;
126125
if (GetTypeInfo(type, nullptr) & eTypeIsFloat) {
127-
count = 1;
128126
return true;
129127
}
130128
return false;

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwift.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class TypeSystemSwift : public TypeSystem {
237237
return true;
238238
}
239239
bool IsConst(lldb::opaque_compiler_type_t type) override { return false; }
240-
bool IsFloatingPointType(lldb::opaque_compiler_type_t type, uint32_t &count,
240+
bool IsFloatingPointType(lldb::opaque_compiler_type_t type,
241241
bool &is_complex) override;
242242
bool IsIntegerType(lldb::opaque_compiler_type_t type,
243243
bool &is_signed) override;

0 commit comments

Comments
 (0)