Skip to content

Commit 386086c

Browse files
authored
Merge pull request #3723 from rudkx/silence-release-build-warnings
Silence a few release-build warnings.
2 parents ff83497 + 4b826b1 commit 386086c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/LLVMPasses/LLVMMergeFunctions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,7 @@ bool SwiftMergeFunctions::replaceDirectCallers(Function *Old, Function *New,
21522152
IRBuilder<> Builder(CI);
21532153

21542154
FunctionType *NewFuncTy = New->getFunctionType();
2155+
(void) NewFuncTy;
21552156
unsigned ParamIdx = 0;
21562157

21572158
// Add the existing parameters.

lib/SILOptimizer/ARC/ARCRegionState.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ bool ARCRegionState::processLoopTopDown(
474474
}
475475

476476
auto *PredRegion = LRFI->getRegion(*R->pred_begin());
477+
(void) PredRegion;
477478
assert(PredRegion->isBlock() && "Expected the predecessor region to be a "
478479
"block");
479480

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6636,6 +6636,7 @@ void TypeChecker::validateDecl(ValueDecl *D, bool resolveTypeParams) {
66366636

66376637
// Validate the generic type signature, which is just <Self : P>.
66386638
auto gp = proto->getGenericParams();
6639+
(void) gp;
66396640

66406641
validateGenericTypeSignature(proto);
66416642

0 commit comments

Comments
 (0)