Skip to content

Commit 059b5f5

Browse files
authored
Merge pull request #7150 from slavapestov/type-in-context-var-decl
[Swift] Update for VarDecl::getType() => getTypeInContext() renaming
2 parents cd5b4a9 + a5211b6 commit 059b5f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftASTManipulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ bool SwiftASTManipulator::FixupResultAfterTypeChecking(Status &error) {
709709
"Type of %zuth return value could not be determined.", i);
710710
return false;
711711
}
712-
swift::Type its_type = the_decl->getType();
712+
swift::Type its_type = the_decl->getTypeInContext();
713713
if (result_type.isNull()) {
714714
result_type = its_type;
715715
} else if (!its_type.getPointer()->isEqual(result_type)) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6933,7 +6933,7 @@ CompilerType SwiftASTContext::GetChildCompilerTypeAtIndex(
69336933
continue;
69346934

69356935
CompilerType child_type =
6936-
ToCompilerType(VD->getType().getPointer());
6936+
ToCompilerType(VD->getTypeInContext().getPointer());
69376937
child_name = VD->getNameStr().str();
69386938
if (!get_type_size(child_byte_size, child_type))
69396939
return {};

0 commit comments

Comments
 (0)