Swift: small tweak to visitBuiltinType

This commit is contained in:
Paolo Tranquilli
2023-04-26 09:05:26 +02:00
parent 87c73879cb
commit 7adcd0d043

View File

@@ -174,10 +174,8 @@ SwiftMangledName SwiftMangler::visitTupleType(const swift::TupleType* type) {
}
SwiftMangledName SwiftMangler::visitBuiltinType(const swift::BuiltinType* type) {
auto ret = initMangled(type);
llvm::SmallString<32> buffer;
ret << type->getTypeName(buffer, /* prependBuiltinNamespace= */ false);
return ret;
return initMangled(type) << type->getTypeName(buffer, /* prependBuiltinNamespace= */ false);
}
SwiftMangledName SwiftMangler::visitAnyGenericType(const swift::AnyGenericType* type) {