summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LegacyPassManager.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2018-05-18 20:04:21 +0000
committerJessica Paquette <jpaquette@apple.com>2018-05-18 20:04:21 +0000
commitc6048174932ebadeee274d4f8745ceb679aa0a38 (patch)
treecb818bd0c2ab28e98abdcee80258c3cd6b8f07da /llvm/lib/IR/LegacyPassManager.cpp
parente3f652973e6e4fb7074b0bdc2291493e6cb8fae5 (diff)
downloadbcm5719-llvm-c6048174932ebadeee274d4f8745ceb679aa0a38.tar.gz
bcm5719-llvm-c6048174932ebadeee274d4f8745ceb679aa0a38.zip
[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. llvm-svn: 332758
Diffstat (limited to 'llvm/lib/IR/LegacyPassManager.cpp')
-rw-r--r--llvm/lib/IR/LegacyPassManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp
index 74481b0e501..6f3da0245c1 100644
--- a/llvm/lib/IR/LegacyPassManager.cpp
+++ b/llvm/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",
OpenPOWER on IntegriCloud