We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a654df7 commit dcc7e38Copy full SHA for dcc7e38
lib/SIL/IR/SILDeclRef.cpp
@@ -1298,7 +1298,7 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
1298
}
1299
1300
// Use a given cdecl name for native-to-foreign thunks.
1301
- if (auto CDeclA = getDecl()->getAttrs().getAttribute<CDeclAttr>())
+ if (getDecl()->getAttrs().hasAttribute<CDeclAttr>())
1302
if (isNativeToForeignThunk()) {
1303
// If this is an @implementation @_cdecl, mangle it like the clang
1304
// function it implements.
0 commit comments