aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-27 19:14:16 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-27 19:14:16 +0000
commit788a0c6a181ddb8f10b0f4b83af43b4469e9c73b (patch)
treeaed443ba797130351a7c72e238a62b1f579507af
parent461076f05287bde5a2817c3426120596e6962f31 (diff)
Temp patch for missing functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31222 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/FoldingSet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp
index 14b524bceb..7d0dca2cb1 100644
--- a/lib/Support/FoldingSet.cpp
+++ b/lib/Support/FoldingSet.cpp
@@ -56,10 +56,14 @@ 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);
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) |