Skip to content

Commit c0b975c

Browse files
beccadaxCatfish-Man
authored andcommitted
Tweak syntax for VC++ support
1 parent 056de65 commit c0b975c

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
@@ -3876,8 +3876,9 @@ StringRef ValueDecl::getCDeclName() const {
38763876
}
38773877

38783878
// Handle explicit cdecl attributes.
3879-
if (auto *cdecl = getAttrs().getAttribute<CDeclAttr>())
3880-
return cdecl->Name;
3879+
if (auto cdeclAttr = getAttrs().getAttribute<CDeclAttr>()) {
3880+
return cdeclAttr->Name;
3881+
}
38813882

38823883
return "";
38833884
}

0 commit comments

Comments
 (0)