mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make this pass return that it made a change if
it modifies a functions attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c11debc94
commit
cae62e3498
@ -133,7 +133,11 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
||||
NewAttributes |= ParamAttr::NoReturn;
|
||||
|
||||
const PAListPtr &PAL = SCC[i]->getFunction()->getParamAttrs();
|
||||
SCC[i]->getFunction()->setParamAttrs(PAL.addAttr(0, NewAttributes));
|
||||
const PAListPtr &NPAL = PAL.addAttr(0, NewAttributes);
|
||||
if (PAL != NPAL) {
|
||||
MadeChange = true;
|
||||
SCC[i]->getFunction()->setParamAttrs(NPAL);
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user