Fix release build warnings about unused variables.

Swift SVN r23893
This commit is contained in:
Mark Lacey
2014-12-12 20:05:30 +00:00
parent 1c1535fbcb
commit 4a74e94b40
2 changed files with 2 additions and 0 deletions

View File

@@ -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"