Some bug fixes for ptr arith

This commit is contained in:
caheckman 2020-05-01 14:40:01 -04:00
parent 4f1adfcfc0
commit 5332624de8
2 changed files with 14 additions and 3 deletions

View file

@ -5928,9 +5928,16 @@ bool AddTreeState::apply(void)
preventDistribution = true;
spanAddTree(baseOp,1);
}
calcSubtype();
}
if (!valid) {
// Distribution transforms were made
ostringstream s;
s << "Problems distributing in pointer arithmetic at ";
baseOp->getAddr().printRaw(s);
data.warningHeader(s.str());
return true;
}
if (!valid)
throw LowlevelError("Problems distributing in ptrarith");
buildTree();
return true;
}