Skip to content

Commit 97c9dbc

Browse files
committed
Tweak syntax for VC++ support
1 parent 042af8e commit 97c9dbc

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)