mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 19:46: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;
|
OverloadCandidateSet::iterator Best;
|
||||||
OverloadingResult Ovl
|
OverloadingResult Ovl
|
||||||
= FailedCandidateSet.BestViableFunction(S, Kind.getLocation(), Best);
|
= FailedCandidateSet.BestViableFunction(S, Kind.getLocation(), Best);
|
||||||
|
(void)Ovl;
|
||||||
assert(Ovl == OR_Success && "Inconsistent overload resolution");
|
assert(Ovl == OR_Success && "Inconsistent overload resolution");
|
||||||
CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
|
CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
|
||||||
S.Diag(CtorDecl->getLocation(), diag::note_constructor_declared_here);
|
S.Diag(CtorDecl->getLocation(), diag::note_constructor_declared_here);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user