From: Benjamin Kramer Date: Sat, 14 Jan 2012 17:59:15 +0000 (+0000) Subject: Reorder initializers, make use of the whole array. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=448ce0f1b419bb434761422bc5f050bf4b57b703;p=clang Reorder initializers, make use of the whole array. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148193 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Overload.h b/include/clang/Sema/Overload.h index c0660508ce..c6d9e48f5b 100644 --- a/include/clang/Sema/Overload.h +++ b/include/clang/Sema/Overload.h @@ -707,7 +707,7 @@ namespace clang { OverloadCandidateSet &operator=(const OverloadCandidateSet &); public: - OverloadCandidateSet(SourceLocation Loc) : NumInlineSequences(0), Loc(Loc){} + OverloadCandidateSet(SourceLocation Loc) : Loc(Loc), NumInlineSequences(0){} ~OverloadCandidateSet() { // Destroy OverloadCandidates before the allocator is destroyed. Candidates.clear(); @@ -739,7 +739,7 @@ namespace clang { // Assign space from the inline array if there are enough free slots // available. - if (NumConversions + NumInlineSequences < 16) { + if (NumConversions + NumInlineSequences <= 16) { ImplicitConversionSequence *I = (ImplicitConversionSequence*)InlineSpace; C.Conversions = &I[NumInlineSequences];