mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Switch Elts from vector to SmallVector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ceff94447
commit
acf1831596
@ -37,8 +37,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM) {
|
||||
|
||||
if (isa<MDNode>(V)) {
|
||||
const MDNode *MD = dyn_cast<MDNode>(V);
|
||||
std::vector<Value*> Elts;
|
||||
Elts.reserve(MD->getNumOperands());
|
||||
SmallVector<Value*, 4> Elts;
|
||||
for (unsigned i = 0; i != MD->getNumOperands(); i++)
|
||||
Elts.push_back(MapValue(MD->getOperand(i), VM));
|
||||
return VM[V] = MDNode::get(V->getContext(), Elts.data(), Elts.size());
|
||||
|
Loading…
Reference in New Issue
Block a user