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();
|
auto ThinCallee = cast<ThinToThickFunctionInst>(Callee)->getOperand();
|
||||||
// TODO: We want to see through these to the underlying function.
|
// TODO: We want to see through these to the underlying function.
|
||||||
assert(cast<FunctionRefInst>(ThinCallee) && "Expected function reference!");
|
assert(cast<FunctionRefInst>(ThinCallee) && "Expected function reference!");
|
||||||
|
(void)ThinCallee;
|
||||||
++NumCallSitesWithoutEdges;
|
++NumCallSitesWithoutEdges;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1404,6 +1404,8 @@ static void buildBlockToFuncThunkBody(SILGenFunction &gen,
|
|||||||
? convention == ResultConvention::Unowned
|
? convention == ResultConvention::Unowned
|
||||||
: convention == ResultConvention::Owned)
|
: convention == ResultConvention::Owned)
|
||||||
&& "nonstandard conventions for return not implemented");
|
&& "nonstandard conventions for return not implemented");
|
||||||
|
(void)convention;
|
||||||
|
(void)resultTL;
|
||||||
|
|
||||||
auto r = result.forward(gen);
|
auto r = result.forward(gen);
|
||||||
scope.pop();
|
scope.pop();
|
||||||
|
|||||||
@@ -2447,6 +2447,7 @@ static bool existentialConformsToProtocol(TypeChecker &tc, Type type,
|
|||||||
SmallVector<ProtocolDecl *, 4> protocols;
|
SmallVector<ProtocolDecl *, 4> protocols;
|
||||||
bool isExistential = type->isExistentialType(protocols);
|
bool isExistential = type->isExistentialType(protocols);
|
||||||
assert(isExistential && "Not existential?");
|
assert(isExistential && "Not existential?");
|
||||||
|
(void)isExistential;
|
||||||
|
|
||||||
// An existential that must be a class trivially conforms to AnyObject.
|
// An existential that must be a class trivially conforms to AnyObject.
|
||||||
if (type->isClassExistentialType() &&
|
if (type->isClassExistentialType() &&
|
||||||
|
|||||||
Reference in New Issue
Block a user