Skip to content

Commit b842686

Browse files
committed
Runtime: Quell a warning about useless const on a function typedef.
1 parent bd974f0 commit b842686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/MetadataLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ swift::_getTypeByMangledName(StringRef typeName,
10311031
// Call the associated type access function.
10321032
// TODO: can we just request abstract metadata? If so, do we have
10331033
// a responsibility to try to finish it later?
1034-
return ((const AssociatedTypeAccessFunction * const *)witnessTable)[*assocTypeReqIndex]
1034+
return ((AssociatedTypeAccessFunction * const *)witnessTable)[*assocTypeReqIndex]
10351035
(MetadataState::Complete, base, witnessTable).Value;
10361036
});
10371037

0 commit comments

Comments
 (0)