diff options
author | Richard Trieu <rtrieu@google.com> | 2019-07-23 03:10:06 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-07-23 03:10:06 +0000 |
commit | 3a52c3857feb88712901c065672931297fd4ed9b (patch) | |
tree | 807825c2e2719c3b5e4095f609fb64d5440c70ad | |
parent | 81a5045cd6320641e4b8620b9f18d3b22da68016 (diff) | |
download | bcm5719-llvm-3a52c3857feb88712901c065672931297fd4ed9b.tar.gz bcm5719-llvm-3a52c3857feb88712901c065672931297fd4ed9b.zip |
Inline function call into assert to fix unused variable warning.
llvm-svn: 366774
-rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index f4e2ed4df98..9f61829645f 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -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; @@ -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; } |