diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:36 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:36 +0000 |
commit | 57214f533a7b9e48a0c5ba0f89b7219c7c9abbae (patch) | |
tree | d7cb13e5df7bcd139f90661685329a2d1f734dec /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 820b4c515384b8365b37f7a9d1144d4a525fa4cf (diff) | |
download | bcm5719-llvm-57214f533a7b9e48a0c5ba0f89b7219c7c9abbae.tar.gz bcm5719-llvm-57214f533a7b9e48a0c5ba0f89b7219c7c9abbae.zip |
Fix VS 2010 build.
Patch by Nathan Jeffords!
llvm-svn: 114661
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5b65c45071d..63ba1c415ae 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2247,7 +2247,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, if (Val & 128) Val = GetVBR(Val, MatcherTable, MatcherIndex); RecordedNodes.push_back(std::pair<SDValue, SDNode*>( - CurDAG->getTargetConstant(Val, VT), 0)); + CurDAG->getTargetConstant(Val, VT), (SDNode*)0)); continue; } case OPC_EmitRegister: { @@ -2255,7 +2255,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, (MVT::SimpleValueType)MatcherTable[MatcherIndex++]; unsigned RegNo = MatcherTable[MatcherIndex++]; RecordedNodes.push_back(std::pair<SDValue, SDNode*>( - CurDAG->getRegister(RegNo, VT), 0)); + CurDAG->getRegister(RegNo, VT), (SDNode*)0)); continue; } @@ -2370,7 +2370,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, unsigned RecNo = MatcherTable[MatcherIndex++]; assert(RecNo < RecordedNodes.size() && "Invalid CheckSame"); SDValue Res = RunSDNodeXForm(RecordedNodes[RecNo].first, XFormNo); - RecordedNodes.push_back(std::pair<SDValue,SDNode*>(Res, 0)); + RecordedNodes.push_back(std::pair<SDValue,SDNode*>(Res, (SDNode*) 0)); continue; } @@ -2451,7 +2451,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, for (unsigned i = 0, e = VTs.size(); i != e; ++i) { if (VTs[i] == MVT::Other || VTs[i] == MVT::Flag) break; RecordedNodes.push_back(std::pair<SDValue,SDNode*>(SDValue(Res, i), - 0)); + (SDNode*) 0)); } } else { |