[stack-safety] Fix and uncomment assert

llvm-svn: 347625
This commit is contained in:
Vitaly Buka 2018-11-27 01:56:35 +00:00
parent 769bff18be
commit 7792f5f145
1 changed files with 2 additions and 3 deletions

View File

@ -462,9 +462,8 @@ bool StackSafetyDataFlowAnalysis::updateOneUse(UseInfo &US,
bool UpdateToFullSet) {
bool Changed = false;
for (auto &CS : US.Calls) {
// FIXME: this doesn't build.
// assert(!CS.Range.isEmptySet() &&
// "Param range can't be empty-set, invalid access range");
assert(!CS.Offset.isEmptySet() &&
"Param range can't be empty-set, invalid offset range");
ConstantRange CalleeRange = getArgumentAccessRange(CS.Callee, CS.ParamNo);
CalleeRange = CalleeRange.add(CS.Offset);