GP-3441 Protect INDIRECT path to switch variable

This commit is contained in:
caheckman 2023-05-16 18:37:19 -04:00
parent 7089e6de63
commit 0398e40b07
6 changed files with 116 additions and 2 deletions

View file

@ -2926,7 +2926,7 @@ int4 RuleIndirectCollapse::applyOp(PcodeOp *op,Funcdata &data)
}
}
else if (indop->isCall()) {
if (op->isIndirectCreation())
if (op->isIndirectCreation() || op->noIndirectCollapse())
return 0;
// If there are no aliases to a local variable, collapse
if (!op->getOut()->hasNoLocalAlias())