mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
SmallVector append not insert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47ce6b4752
commit
2ac33c447d
@ -56,14 +56,10 @@ void FoldingSetImpl::NodeID::AddString(const std::string &String) {
|
|||||||
const unsigned *Base = (const unsigned *)String.data();
|
const unsigned *Base = (const unsigned *)String.data();
|
||||||
|
|
||||||
// If the string is aligned do a bulk transfer.
|
// If the string is aligned do a bulk transfer.
|
||||||
#if 0 // FIXME - Add insert to SmallVector (tested with vector)
|
|
||||||
if (!((intptr_t)Base & 3)) {
|
if (!((intptr_t)Base & 3)) {
|
||||||
Bits.insert(Bits.end(), Base, Base + Units);
|
Bits.append(Base, Base + Units);
|
||||||
Pos = Units * sizeof(unsigned);
|
Pos = Units * sizeof(unsigned);
|
||||||
} else {
|
} else {
|
||||||
#else
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
// Otherwise do it the hard way.
|
// Otherwise do it the hard way.
|
||||||
for ( Pos += 4; Pos < Size; Pos += 4) {
|
for ( Pos += 4; Pos < Size; Pos += 4) {
|
||||||
unsigned V = ((unsigned char)String[Pos - 4] << 24) |
|
unsigned V = ((unsigned char)String[Pos - 4] << 24) |
|
||||||
|
Loading…
Reference in New Issue
Block a user