forked from OSchip/llvm-project
[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
This commit is contained in:
parent
e3f652973e
commit
c604817493
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue