mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix release build warnings about unused variables.
Swift SVN r23893
This commit is contained in:
@@ -160,6 +160,7 @@ static bool devirtMethod(ApplyInst *AI, SILDeclRef Member,
|
||||
if (FuncSelfTy != OriginTy) {
|
||||
if (ClassInstance.stripUpCasts().getType().getAs<MetatypeType>()) {
|
||||
auto &Module = AI->getModule();
|
||||
(void) Module;
|
||||
assert(FuncSelfTy.getMetatypeInstanceType(Module).
|
||||
isSuperclassOf(OriginTy.getMetatypeInstanceType(Module)) &&
|
||||
"Can not call a class method"
|
||||
|
||||
Reference in New Issue
Block a user