diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-14 21:05:10 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-14 21:05:10 +0000 |
commit | 1136ef09ff327c2032ec20e2c2ab87cdbf017b1b (patch) | |
tree | bac1510adac819381ac872370f866afd56a89d48 /lib/Sema/SemaOverload.cpp | |
parent | 9e2822bb4ada53a3cebd9a3f793fef8d700c5c9a (diff) |
Use a smaller vector than SmallVector.
Shrinks OverloadCandidate from 208 to 168 bytes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 5044f1c1df..8281597e29 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -7477,9 +7477,8 @@ void DiagnoseBadConversion(Sema &S, OverloadCandidate *Cand, unsigned I) { << (unsigned) (Cand->Fix.Kind); // If we can fix the conversion, suggest the FixIts. - for (SmallVector<FixItHint, 1>::iterator - HI = Cand->Fix.Hints.begin(), HE = Cand->Fix.Hints.end(); - HI != HE; ++HI) + for (std::vector<FixItHint>::iterator HI = Cand->Fix.Hints.begin(), + HE = Cand->Fix.Hints.end(); HI != HE; ++HI) FDiag << *HI; S.Diag(Fn->getLocation(), FDiag); |