1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Temp patch for missing functionality.

llvm-svn: 31222
This commit is contained in:
Jim Laskey 2006-10-27 19:14:16 +00:00
parent dd294b507f
commit 398ce23c4d

View File

@ -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) |