projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461076f
)
Temp patch for missing functionality.
author
Jim Laskey
<jlaskey@mac.com>
Fri, 27 Oct 2006 19:14:16 +0000
(19:14 +0000)
committer
Jim Laskey
<jlaskey@mac.com>
Fri, 27 Oct 2006 19:14:16 +0000
(19:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31222
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/FoldingSet.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FoldingSet.cpp
b/lib/Support/FoldingSet.cpp
index 14b524bceb88929cc2c0e2c783239a9d5271e685..7d0dca2cb13aa1dd2f3c024174808b9aeb557ef7 100644
(file)
--- 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) |