Skip to content

Commit 06e3c9c

Browse files
committed
SILGen: Fix an unused variable warning
1 parent 4a08fc6 commit 06e3c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenBridging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static ManagedValue emitCBridgedToNativeValue(SILGenFunction &SGF,
941941
}
942942

943943
// Bridge Objective-C to thick metatypes.
944-
if (auto nativeMetaTy = dyn_cast<AnyMetatypeType>(nativeType)) {
944+
if (isa<AnyMetatypeType>(nativeType)) {
945945
auto bridgedMetaTy = cast<AnyMetatypeType>(bridgedType);
946946
if (bridgedMetaTy->hasRepresentation() &&
947947
bridgedMetaTy->getRepresentation() == MetatypeRepresentation::ObjC) {

0 commit comments

Comments
 (0)