Fix buildbot failure for x86_64-darwin due to r254021
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254028
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
for (unsigned s = 0, e = TI->getNumSuccessors(); s != e; ++s) {
BasicBlock *Succ = TI->getSuccessor(s);
uint32_t Index = getBBInfo(Succ).Index;
- for (int i = 0; i < sizeof(uint32_t) / sizeof(char); i++)
- Indexes.push_back((char)(Index >> (i * sizeof(char))));
+ for (int i = 0; i < 4; i++)
+ Indexes.push_back((char)(Index >> i));
}
}
JC.update(Indexes);