Skip to content

Commit

Permalink
Initialize PersistentId for HandleSDNode, as these will never be inse…
Browse files Browse the repository at this point in the history
…rted into the DAG

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253524 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed Nov 19, 2015
1 parent b8dd4a3 commit 491e164
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/llvm/CodeGen/SelectionDAGNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,9 @@ class HandleSDNode : public SDNode {
public:
explicit HandleSDNode(SDValue X)
: SDNode(ISD::HANDLENODE, 0, DebugLoc(), getSDVTList(MVT::Other)) {
// HandleSDNodes are never inserted into the DAG, so they won't be
// auto-numbered. Use ID 65535 as a sentinel.
PersistentId = 0xffff;
InitOperands(&Op, X);
}
~HandleSDNode();
Expand Down

0 comments on commit 491e164

Please sign in to comment.