Skip to content

Commit 2fcfa7e

Browse files
committed
Sema: Fix unused variable warning in noassert build
1 parent 1dc4c46 commit 2fcfa7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,7 @@ NamingPatternRequest::evaluate(Evaluator &evaluator, VarDecl *VD) const {
26712671
}
26722672
}
26732673
assert(foundVarDecl && "VarDecl not declared in its parent?");
2674+
(void) foundVarDecl;
26742675
} else {
26752676
// We have some other parent stmt. Type check it completely.
26762677
if (auto CS = dyn_cast<CaseStmt>(parentStmt))

0 commit comments

Comments
 (0)