diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-04-02 19:05:35 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-04-02 19:05:35 +0000 |
commit | e7d0bbfa101d0f0b955c04c417b5e3283497a7ed (patch) | |
tree | d2e0e5d3525f50e00a9d1b0708d41213e010562e /lib/Sema/SemaInit.cpp | |
parent | 0f6931a2c2cf7f19bab07ab752dfd632d8494205 (diff) |
Silence -Wunused-variable in -Asserts build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index f748db943a..78328ab884 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -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); |