mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Add a special case for main because we know it's incoming arguments don't alias
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ef0da2e25
commit
e77f1456d7
@ -752,7 +752,7 @@ static void markIncomplete(DSCallSite &Call) {
|
||||
//
|
||||
void DSGraph::markIncompleteNodes(unsigned Flags) {
|
||||
// Mark any incoming arguments as incomplete...
|
||||
if ((Flags & DSGraph::MarkFormalArgs) && Func)
|
||||
if ((Flags & DSGraph::MarkFormalArgs) && Func && Func->getName() != "main")
|
||||
for (Function::aiterator I = Func->abegin(), E = Func->aend(); I != E; ++I)
|
||||
if (isPointerType(I->getType()) && ScalarMap.find(I) != ScalarMap.end())
|
||||
markIncompleteNode(ScalarMap[I].getNode());
|
||||
|
Loading…
Reference in New Issue
Block a user