diff options
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 191d5f0f4ad..f60b1815ce4 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -224,9 +224,9 @@ bool LPPassManager::runOnFunction(Function &F) { // Update the size of the function, emit a remark, and update the // size of the module. if (NewSize != FunctionSize) { - emitInstrCountChangedRemark(P, M, InstrCount); int64_t Delta = static_cast<int64_t>(NewSize) - static_cast<int64_t>(FunctionSize); + emitInstrCountChangedRemark(P, M, Delta, InstrCount); InstrCount = static_cast<int64_t>(InstrCount) + Delta; FunctionSize = NewSize; } |