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 | 0209f50c0d66c284df4176e85450ec4a6c1d88dd (patch) | |
| tree | 85379edc5460c188d76e7b92052234293937ff1c /llvm/include | |
| parent | 2d814c305e2437b1cc1424036a7c1294f1444295 (diff) | |
| download | bcm5719-llvm-0209f50c0d66c284df4176e85450ec4a6c1d88dd.tar.gz bcm5719-llvm-0209f50c0d66c284df4176e85450ec4a6c1d88dd.zip | |
Fixed use of phi param in SlotIndex constructors.
llvm-svn: 91790
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SlotIndexes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/SlotIndexes.h b/llvm/include/llvm/CodeGen/SlotIndexes.h index 9a85ee1fbf2..f4eaffa40d3 100644 --- a/llvm/include/llvm/CodeGen/SlotIndexes.h +++ b/llvm/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."); } |

