mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fix a problem where we not marking incoming arguments to functions with
external linkage as incomplete. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1657,7 +1657,8 @@ void DSGraph::markIncompleteNodes(unsigned Flags) {
|
||||
for (ReturnNodesTy::iterator FI = ReturnNodes.begin(), E =ReturnNodes.end();
|
||||
FI != E; ++FI) {
|
||||
Function &F = *FI->first;
|
||||
for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); I != E; ++I)
|
||||
for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end();
|
||||
I != E; ++I)
|
||||
if (isPointerType(I->getType()))
|
||||
markIncompleteNode(getNodeForValue(I).getNode());
|
||||
markIncompleteNode(FI->second.getNode());
|
||||
|
Reference in New Issue
Block a user