]> granicus.if.org Git - clang/commitdiff
Reorder initializers, make use of the whole array.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Jan 2012 17:59:15 +0000 (17:59 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Jan 2012 17:59:15 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148193 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Overload.h

index c0660508ce95ea434f7854a8fb0f8b8bf08777d7..c6d9e48f5bdf507aa10b6d39347d8292dd9f381c 100644 (file)
@@ -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];