projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8dd4a3
)
Initialize PersistentId for HandleSDNode, as these will never be inserted into the DAG
author
Reid Kleckner
<rnk@google.com>
Thu, 19 Nov 2015 00:05:09 +0000
(
00:05
+0000)
committer
Reid Kleckner
<rnk@google.com>
Thu, 19 Nov 2015 00:05:09 +0000
(
00:05
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253524
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGNodes.h
b/include/llvm/CodeGen/SelectionDAGNodes.h
index e0eadfaa2b30bb05fe06e1f6356069756dbe4352..66f488203f95f011f0967dba1a55c5fc5fa4a061 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
include/llvm/CodeGen/SelectionDAGNodes.h
@@
-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();