Skip to content

Commit dcc7e38

Browse files
committed
SIL: Fix warning on unused variable
1 parent a654df7 commit dcc7e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/IR/SILDeclRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
12981298
}
12991299

13001300
// Use a given cdecl name for native-to-foreign thunks.
1301-
if (auto CDeclA = getDecl()->getAttrs().getAttribute<CDeclAttr>())
1301+
if (getDecl()->getAttrs().hasAttribute<CDeclAttr>())
13021302
if (isNativeToForeignThunk()) {
13031303
// If this is an @implementation @_cdecl, mangle it like the clang
13041304
// function it implements.

0 commit comments

Comments
 (0)