Skip to content

Commit 6883bce

Browse files
committed
Tweak syntax for VC++ support
1 parent 042af8e commit 6883bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 1 deletion
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>())
3881+
if (auto cdecl = getAttrs().getAttribute<CDeclAttr>()) {
38823882
return cdecl->Name;
3883+
}
38833884

38843885
return "";
38853886
}

0 commit comments

Comments
 (0)