mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 20:16:05 +00:00
Silence -Wunused-variable in -Asserts build
llvm-svn: 153885
This commit is contained in:
parent
d9a1cd8dbf
commit
5dcce096b6
@ -5745,6 +5745,7 @@ bool InitializationSequence::Diagnose(Sema &S,
|
||||
OverloadCandidateSet::iterator Best;
|
||||
OverloadingResult Ovl
|
||||
= FailedCandidateSet.BestViableFunction(S, Kind.getLocation(), Best);
|
||||
(void)Ovl;
|
||||
assert(Ovl == OR_Success && "Inconsistent overload resolution");
|
||||
CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
|
||||
S.Diag(CtorDecl->getLocation(), diag::note_constructor_declared_here);
|
||||
|
Loading…
x
Reference in New Issue
Block a user