Initialize PersistentId for HandleSDNode, as these will never be inserted into the DAG

llvm-svn: 253524
This commit is contained in:
Reid Kleckner 2015-11-19 00:05:09 +00:00
parent 70effde0af
commit 6f2a59b715
1 changed files with 3 additions and 0 deletions

View File

@ -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();