Reorder initializers, make use of the whole array.

llvm-svn: 148193
This commit is contained in:
Benjamin Kramer 2012-01-14 17:59:15 +00:00
parent 1f8f8a3e64
commit 9059ff5056
1 changed files with 2 additions and 2 deletions

View 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];