File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2450,6 +2450,9 @@ class SelectionDAG {
2450
2450
const SDLoc &DLoc);
2451
2451
2452
2452
private:
2453
+ #ifndef NDEBUG
2454
+ void verifyNode (SDNode *N) const ;
2455
+ #endif
2453
2456
void InsertNode (SDNode *N);
2454
2457
bool RemoveNodeFromCSEMaps (SDNode *N);
2455
2458
void AddModifiedNodeToCSEMaps (SDNode *N);
Original file line number Diff line number Diff line change @@ -1155,11 +1155,11 @@ void SelectionDAG::DeallocateNode(SDNode *N) {
1155
1155
1156
1156
#ifndef NDEBUG
1157
1157
/// VerifySDNode - Check the given SDNode. Aborts if it is invalid.
1158
- static void VerifySDNode(const SelectionDAG &DAG, SDNode *N) {
1158
+ void SelectionDAG::verifyNode( SDNode *N) const {
1159
1159
switch (N->getOpcode()) {
1160
1160
default:
1161
1161
if (N->isTargetOpcode())
1162
- DAG. getSelectionDAGInfo().verifyTargetNode(DAG , N);
1162
+ getSelectionDAGInfo().verifyTargetNode(*this , N);
1163
1163
break;
1164
1164
case ISD::BUILD_PAIR: {
1165
1165
EVT VT = N->getValueType(0);
@@ -1203,7 +1203,7 @@ void SelectionDAG::InsertNode(SDNode *N) {
1203
1203
AllNodes.push_back(N);
1204
1204
#ifndef NDEBUG
1205
1205
N->PersistentId = NextPersistentId++;
1206
- VerifySDNode(*this, N);
1206
+ verifyNode( N);
1207
1207
#endif
1208
1208
for (DAGUpdateListener *DUL = UpdateListeners; DUL; DUL = DUL->Next)
1209
1209
DUL->NodeInserted(N);
You can’t perform that action at this time.
0 commit comments