diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-27 19:38:32 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-27 19:38:32 +0000 |
commit | 2ac33c447dc392282f3f71772b8c11f825d79922 (patch) | |
tree | db2ea7a57db3978a132a76ea76f1a0150d0946b0 /lib/Support | |
parent | 47ce6b4752ae245c3443bfbbc6268b902a03a4b2 (diff) | |
download | external_llvm-2ac33c447dc392282f3f71772b8c11f825d79922.zip external_llvm-2ac33c447dc392282f3f71772b8c11f825d79922.tar.gz external_llvm-2ac33c447dc392282f3f71772b8c11f825d79922.tar.bz2 |
SmallVector append not insert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/FoldingSet.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index 1f22a1f..2ae9876 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -56,14 +56,10 @@ void FoldingSetImpl::NodeID::AddString(const std::string &String) { const unsigned *Base = (const unsigned *)String.data(); // If the string is aligned do a bulk transfer. -#if 0 // FIXME - Add insert to SmallVector (tested with vector) if (!((intptr_t)Base & 3)) { - Bits.insert(Bits.end(), Base, Base + Units); + Bits.append(Base, Base + Units); Pos = Units * sizeof(unsigned); } else { -#else - { -#endif // Otherwise do it the hard way. for ( Pos += 4; Pos < Size; Pos += 4) { unsigned V = ((unsigned char)String[Pos - 4] << 24) | |