blockfreq: Fixing MSVC after r206548?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-04-18 02:06:24 +00:00
parent cc1e1707b8
commit a3610962a9

View File

@ -258,7 +258,7 @@ std::pair<uint64_t, int16_t> PositiveFloatBase::divide64(uint64_t Dividend,
// Divide.
bool DoesDivide = IsOverflow || Divisor <= Dividend;
Quotient = (Quotient << 1) | DoesDivide;
Quotient = (Quotient << 1) | uint64_t(DoesDivide);
Dividend -= DoesDivide ? Divisor : 0;
}
@ -382,7 +382,7 @@ struct LoopStack {
void push(const BlockNode &LoopHead, const BlockNode &LatestBackedge) {
assert(LoopHead.isValid());
assert(LatestBackedge.isValid());
OpenLoops.push_back({LoopHead, LatestBackedge});
OpenLoops.emplace_back(LoopHead, LatestBackedge);
}
void pop(const BlockNode &FinishedNode) {
while (!empty() && top().LatestBackedge <= FinishedNode)