diff options
author | Lang Hames <lhames@gmail.com> | 2009-12-19 23:32:32 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-12-19 23:32:32 +0000 |
commit | 0d9c12539ae7cc555582e40df339d880f44cb955 (patch) | |
tree | 76cc3b86064128c03d1578216899e3fa2b00d51d | |
parent | f648125be9385a0d4abfd5e77ea3dd40694c4c07 (diff) | |
download | external_llvm-0d9c12539ae7cc555582e40df339d880f44cb955.zip external_llvm-0d9c12539ae7cc555582e40df339d880f44cb955.tar.gz external_llvm-0d9c12539ae7cc555582e40df339d880f44cb955.tar.bz2 |
Fixed use of phi param in SlotIndex constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SlotIndexes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 9a85ee1..f4eaffa 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/include/llvm/CodeGen/SlotIndexes.h @@ -176,7 +176,7 @@ namespace llvm { // Construct a new slot index from the given one, set the phi flag on the // new index to the value of the phi parameter. SlotIndex(const SlotIndex &li, bool phi) - : lie(&li.entry(), phi ? PHI_BIT & li.getSlot() : (unsigned)li.getSlot()){ + : lie(&li.entry(), phi ? PHI_BIT | li.getSlot() : (unsigned)li.getSlot()){ assert(lie.getPointer() != 0 && "Attempt to construct index with 0 pointer."); } @@ -184,7 +184,7 @@ namespace llvm { // Construct a new slot index from the given one, set the phi flag on the // new index to the value of the phi parameter, and the slot to the new slot. SlotIndex(const SlotIndex &li, bool phi, Slot s) - : lie(&li.entry(), phi ? PHI_BIT & s : (unsigned)s) { + : lie(&li.entry(), phi ? PHI_BIT | s : (unsigned)s) { assert(lie.getPointer() != 0 && "Attempt to construct index with 0 pointer."); } |