diff options
author | Rong Xu <xur@google.com> | 2015-11-24 21:55:50 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2015-11-24 21:55:50 +0000 |
commit | 4dd22b8d2ba36469fa23658b6ae2545d76b2ca4f (patch) | |
tree | 082fb5766e92368f549b5d45a8f7147a40050011 /llvm/lib/Transforms/Instrumentation/CFGMST.h | |
parent | b05d380451a8bb4f60c486888966b216d2daff74 (diff) | |
download | bcm5719-llvm-4dd22b8d2ba36469fa23658b6ae2545d76b2ca4f.tar.gz bcm5719-llvm-4dd22b8d2ba36469fa23658b6ae2545d76b2ca4f.zip |
[PGO] Fix build errors in x86_64-darwin
Fix buildbot failure for x86_64-darwin due to r254021
llvm-svn: 254028
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/CFGMST.h')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/CFGMST.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/CFGMST.h b/llvm/lib/Transforms/Instrumentation/CFGMST.h index 3f0496d3073..71a82761741 100644 --- a/llvm/lib/Transforms/Instrumentation/CFGMST.h +++ b/llvm/lib/Transforms/Instrumentation/CFGMST.h @@ -97,7 +97,7 @@ public: uint64_t BBWeight = BFI->getBlockFreq(&*BB).getFrequency(); uint64_t Weight; if (int successors = TI->getNumSuccessors()) { - for (uint32_t i = 0; i != successors; ++i) { + for (int i = 0; i != successors; ++i) { BasicBlock *TargetBB = TI->getSuccessor(i); bool Critical = isCriticalEdge(TI, i); uint64_t scaleFactor = BBWeight; |