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 | cef515fcc0fc45a51d4768e99fe7c3893c1a8ad8 (patch) | |
| tree | bbb5d43b9940a70bf7a801530387bb5671906dcd /llvm/lib/Support/FoldingSet.cpp | |
| parent | a9e9cae33eb5d9676503466adbfa73d93d381b5a (diff) | |
| download | bcm5719-llvm-cef515fcc0fc45a51d4768e99fe7c3893c1a8ad8.tar.gz bcm5719-llvm-cef515fcc0fc45a51d4768e99fe7c3893c1a8ad8.zip | |
SmallVector append not insert.
llvm-svn: 31224
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
| -rw-r--r-- | llvm/lib/Support/FoldingSet.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp index 1f22a1f5e24..2ae98760587 100644 --- a/llvm/lib/Support/FoldingSet.cpp +++ b/llvm/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) | |

