Skip to content

Commit 4a08fc6

Browse files
committed
ClangImporter: Fix an unused variable warning
1 parent 9f55dec commit 4a08fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5346,7 +5346,7 @@ Decl *SwiftDeclConverter::importGlobalAsMethod(
53465346
dc->getAsNominalTypeOrNominalTypeExtensionContext()) {
53475347
if (auto clangDCTy = dyn_cast_or_null<clang::TypedefNameDecl>(
53485348
nominalTypeDecl->getClangDecl()))
5349-
if (auto newtypeAttr = getSwiftNewtypeAttr(clangDCTy, getVersion()))
5349+
if (getSwiftNewtypeAttr(clangDCTy, getVersion()))
53505350
if (clangDCTy->getUnderlyingType().getCanonicalType() !=
53515351
selfParamTy->getPointeeType().getCanonicalType())
53525352
selfIsInOut = false;

0 commit comments

Comments
 (0)