Skip to content

Commit

Permalink
[stack-safety] Fix and uncomment assert
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347625 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vitalybuka committed Nov 27, 2018
1 parent 61eaf01 commit fd4afd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Analysis/StackSafetyAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fd4afd6

Please sign in to comment.