mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Convert push_back loops into append calls.
No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -623,8 +623,7 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
|
||||
// Simple byval argument? Just add all the struct element types.
|
||||
Type *AgTy = cast<PointerType>(I->getType())->getElementType();
|
||||
StructType *STy = cast<StructType>(AgTy);
|
||||
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
|
||||
Params.push_back(STy->getElementType(i));
|
||||
Params.insert(Params.end(), STy->element_begin(), STy->element_end());
|
||||
++NumByValArgsPromoted;
|
||||
} else if (!ArgsToPromote.count(I)) {
|
||||
// Unchanged argument
|
||||
|
Reference in New Issue
Block a user