Skip to content

Commit

Permalink
Inline function call into assert to fix unused variable warning.
Browse files Browse the repository at this point in the history
llvm-svn: 366774
  • Loading branch information
Weverything committed Jul 23, 2019
1 parent 81a5045 commit 3a52c38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/Transforms/IPO/Attributor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1544,8 +1544,6 @@ bool AAIsDeadFunction::explorePath(Attributor &A, Instruction *I) {
}

ChangeStatus AAIsDeadFunction::updateImpl(Attributor &A) {
Function &F = getAnchorScope();

// Temporary collection to iterate over existing noreturn instructions. This
// will alow easier modification of NoReturnCalls collection
SmallVector<Instruction *, 8> NoReturnChanged;
Expand Down Expand Up @@ -1577,7 +1575,8 @@ ChangeStatus AAIsDeadFunction::updateImpl(Attributor &A) {

LLVM_DEBUG(dbgs() << "[AAIsDead] AssumedLiveBlocks: "
<< AssumedLiveBlocks.size()
<< "Total number of blocks: " << F.size() << "\n");
<< "Total number of blocks: "
<< getAnchorScope().size() << "\n");

return Status;
}
Expand Down

0 comments on commit 3a52c38

Please sign in to comment.