Skip to content

Commit 5aa932f

Browse files
committed
Tweak syntax for VC++ support
1 parent e5dbe40 commit 5aa932f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3878,8 +3878,9 @@ StringRef ValueDecl::getCDeclName() const {
38783878
}
38793879

38803880
// Handle explicit cdecl attributes.
3881-
if (auto *cdecl = getAttrs().getAttribute<CDeclAttr>())
3882-
return cdecl->Name;
3881+
if (auto cdeclAttr = getAttrs().getAttribute<CDeclAttr>()) {
3882+
return cdeclAttr->Name;
3883+
}
38833884

38843885
return "";
38853886
}

0 commit comments

Comments
 (0)