Skip to content

Commit 3a52c38

Browse files
committed
Inline function call into assert to fix unused variable warning.
llvm-svn: 366774
1 parent 81a5045 commit 3a52c38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,8 +1544,6 @@ bool AAIsDeadFunction::explorePath(Attributor &A, Instruction *I) {
15441544
}
15451545

15461546
ChangeStatus AAIsDeadFunction::updateImpl(Attributor &A) {
1547-
Function &F = getAnchorScope();
1548-
15491547
// Temporary collection to iterate over existing noreturn instructions. This
15501548
// will alow easier modification of NoReturnCalls collection
15511549
SmallVector<Instruction *, 8> NoReturnChanged;
@@ -1577,7 +1575,8 @@ ChangeStatus AAIsDeadFunction::updateImpl(Attributor &A) {
15771575

15781576
LLVM_DEBUG(dbgs() << "[AAIsDead] AssumedLiveBlocks: "
15791577
<< AssumedLiveBlocks.size()
1580-
<< "Total number of blocks: " << F.size() << "\n");
1578+
<< "Total number of blocks: "
1579+
<< getAnchorScope().size() << "\n");
15811580

15821581
return Status;
15831582
}

0 commit comments

Comments
 (0)