diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-05-18 20:04:21 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-05-18 20:04:21 +0000 |
commit | c2e06bab45f13ac26168b1688fea1cc2c41cd4cd (patch) | |
tree | facab3c70234d253e98d40535d500d72fe00705f | |
parent | a68d4cc279c95047d876ea5227b923b9e4d95198 (diff) |
[NFC] Change cast from r332739 to a static cast
The casts in the delta computation for size remarks should have
been static casts. This fixes that.
Thanks to Dávid Bolvanský for pointing that out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332758 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/IR/LegacyPassManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index 74481b0e501..6f3da0245c1 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -178,7 +178,8 @@ void PMDataManager::emitInstrCountChangedRemark(Pass *P, Module &M, // Compute a possibly negative delta between the instruction count before // running P, and after running P. - int64_t Delta = (int64_t)CountAfter - (int64_t)CountBefore; + int64_t Delta = + static_cast<int64_t>(CountAfter) - static_cast<int64_t>(CountBefore); BasicBlock &BB = *F->begin(); OptimizationRemarkAnalysis R("size-info", "IRSizeChange", |