diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-14 20:12:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-14 20:12:44 +0000 |
commit | 130fc13506b4da64981632c83734721a8b5b2d2d (patch) | |
tree | f46674b90faea553426c52b4e49f9588720c4c58 /lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp | |
parent | 29a965d3c4963b171f0944032d73e57b699e6ff8 (diff) |
Add the actual constant to the hash for ConstantPool nodes. Thanks to
Rafael Espindola for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp index de5302adea..b42c70bb56 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp @@ -64,6 +64,7 @@ SelectionDAGCSEMap::NodeID::NodeID(SDNode *N) { case ISD::TargetConstantPool: AddInteger(cast<ConstantPoolSDNode>(N)->getAlignment()); AddInteger(cast<ConstantPoolSDNode>(N)->getOffset()); + AddPointer(cast<ConstantPoolSDNode>(N)->get()); break; } } |