diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 3c0229f2bf3..81b824f305e 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2712,8 +2712,8 @@ void SelectionDAGBuilder::visitSwitch(const SwitchInst &SI) { !Cases.empty()) { // Replace an unreachable default destination with the most popular case // destination. - DenseMap Popularity; - uint64_t MaxPop = 0; + DenseMap Popularity; + unsigned MaxPop = 0; const BasicBlock *MaxBB = nullptr; for (auto I : SI.cases()) { const BasicBlock *BB = I.getCaseSuccessor(); diff --git a/test/CodeGen/X86/switch-jump-table.ll b/test/CodeGen/X86/switch-jump-table.ll index d1bd4bccbe0..a84fb4aafd1 100644 --- a/test/CodeGen/X86/switch-jump-table.ll +++ b/test/CodeGen/X86/switch-jump-table.ll @@ -6,7 +6,7 @@ define void @sum2(i32 %x, i32* %to) { ; CHECK-LABEL: sum2: ; CHECK: movl 4(%esp), [[REG:%e[a-z]{2}]] -; cmpl $3, [[REG]] +; CHECK: cmpl $3, [[REG]] ; CHECK: jbe .LBB0_1 ; CHECK: movl $4 ; CHECK: retl