[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:
Jessica Paquette 2018-05-18 20:04:21 +00:00
parent e3f652973e
commit c604817493
1 changed files with 2 additions and 1 deletions

View File

@ -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",