diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1536a641a60..cb71f1aae01 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -5210,8 +5210,7 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB, // Emit constants only once even if used by multiple PHI nodes. std::map ConstantsOut; - // Vector bool would be better, but vector is really slow. - std::vector SuccsHandled; + BitVector SuccsHandled; if (TI->getNumSuccessors()) SuccsHandled.resize(BB->getParent()->getNumBlockIDs());