[llvm-commits] [llvm] r114661 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Oscar Fuentes
ofv at wanadoo.es
Thu Sep 23 09:59:36 PDT 2010
Author: ofv
Date: Thu Sep 23 11:59:36 2010
New Revision: 114661
URL: http://llvm.org/viewvc/llvm-project?rev=114661&view=rev
Log:
Fix VS 2010 build.
Patch by Nathan Jeffords!
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=114661&r1=114660&r2=114661&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu Sep 23 11:59:36 2010
@@ -2247,7 +2247,7 @@
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 @@
(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 @@
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 @@
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 {
More information about the llvm-commits
mailing list