Changes in directory llvm/include/llvm/CodeGen:
SelectionDAGNodes.h updated: 1.146 -> 1.147 --- Log message: The top bit is used to determine whether it's a MachineConstantPoolValue. --- Diffs of the changes: (+4 -2) SelectionDAGNodes.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.146 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.147 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.146 Tue Sep 12 15:59:22 2006 +++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Thu Sep 14 02:30:48 2006 @@ -1150,7 +1150,7 @@ Constant *ConstVal; MachineConstantPoolValue *MachineCPVal; } Val; - int Offset; + int Offset; // It's a MachineConstantPoolValue if top bit is set. unsigned Alignment; protected: friend class SelectionDAG; @@ -1200,7 +1200,9 @@ return Val.MachineCPVal; } - int getOffset() const { return Offset; } + int getOffset() const { + return Offset & ~(1 << (sizeof(unsigned)*8-1)); + } // Return the alignment of this constant pool object, which is either 0 (for // default alignment) or log2 of the desired value. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits