[cfe-commits] r148193 - /cfe/trunk/include/clang/Sema/Overload.h
    Benjamin Kramer 
    benny.kra at googlemail.com
       
    Sat Jan 14 09:59:16 PST 2012
    
    
  
Author: d0k
Date: Sat Jan 14 11:59:15 2012
New Revision: 148193
URL: http://llvm.org/viewvc/llvm-project?rev=148193&view=rev
Log:
Reorder initializers, make use of the whole array.
Modified:
    cfe/trunk/include/clang/Sema/Overload.h
Modified: cfe/trunk/include/clang/Sema/Overload.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Overload.h?rev=148193&r1=148192&r2=148193&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Overload.h (original)
+++ cfe/trunk/include/clang/Sema/Overload.h Sat Jan 14 11:59:15 2012
@@ -707,7 +707,7 @@
     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 @@
 
       // 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];
    
    
More information about the cfe-commits
mailing list