Skip to content

Commit 6ef3f67

Browse files
committed
use precise/non-ambiguous type name instead of auto
1 parent cd9a7fc commit 6ef3f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ bool TypeSystemSwiftTypeRef::IsPossibleDynamicType(opaque_compiler_type_t type,
17931793
case Node::Kind::BuiltinTypeName: {
17941794
if (!node->hasText())
17951795
return false;
1796-
auto name = node->getText();
1796+
StringRef name = node->getText();
17971797
return name == swift::BUILTIN_TYPE_NAME_RAWPOINTER ||
17981798
name == swift::BUILTIN_TYPE_NAME_NATIVEOBJECT ||
17991799
name == swift::BUILTIN_TYPE_NAME_BRIDGEOBJECT;

0 commit comments

Comments
 (0)