mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Silence unused variable warnings.
Swift SVN r23346
This commit is contained in:
@@ -90,6 +90,7 @@ void CallGraph::addEdgesForApply(ApplyInst *AI, CallGraphNode *CallerNode) {
|
||||
auto ThinCallee = cast<ThinToThickFunctionInst>(Callee)->getOperand();
|
||||
// TODO: We want to see through these to the underlying function.
|
||||
assert(cast<FunctionRefInst>(ThinCallee) && "Expected function reference!");
|
||||
(void)ThinCallee;
|
||||
++NumCallSitesWithoutEdges;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1404,6 +1404,8 @@ static void buildBlockToFuncThunkBody(SILGenFunction &gen,
|
||||
? convention == ResultConvention::Unowned
|
||||
: convention == ResultConvention::Owned)
|
||||
&& "nonstandard conventions for return not implemented");
|
||||
(void)convention;
|
||||
(void)resultTL;
|
||||
|
||||
auto r = result.forward(gen);
|
||||
scope.pop();
|
||||
|
||||
@@ -2447,6 +2447,7 @@ static bool existentialConformsToProtocol(TypeChecker &tc, Type type,
|
||||
SmallVector<ProtocolDecl *, 4> protocols;
|
||||
bool isExistential = type->isExistentialType(protocols);
|
||||
assert(isExistential && "Not existential?");
|
||||
(void)isExistential;
|
||||
|
||||
// An existential that must be a class trivially conforms to AnyObject.
|
||||
if (type->isClassExistentialType() &&
|
||||
|
||||
Reference in New Issue
Block a user