aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2008-10-07 17:11:29 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2008-10-07 17:11:29 +0000
commitff75d9edbb54380deae77c8767fd7581ca401c1d (patch)
tree0b03ebbe70b2f04031738598ccf55cc667588e7f /lib/CodeGen
parent1ad0c8201b119d4d90a837dd622b61eedf1648ea (diff)
downloadexternal_llvm-ff75d9edbb54380deae77c8767fd7581ca401c1d.zip
external_llvm-ff75d9edbb54380deae77c8767fd7581ca401c1d.tar.gz
external_llvm-ff75d9edbb54380deae77c8767fd7581ca401c1d.tar.bz2
No need for |=
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index b353569..d4d13c3 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -6445,16 +6445,16 @@ void SelectionDAGLegalize::ExpandOp(SDValue Op, SDValue &Lo, SDValue &Hi){
unsigned OpV = Node->getOpcode() == ISD::ADD ? ISD::ADDC : ISD::SUBC;
bool hasCarry = false;
if (NVT == MVT::i64)
- hasCarry |= TLI.isOperationLegal(OpV, MVT::i64)
+ hasCarry = TLI.isOperationLegal(OpV, MVT::i64)
| TLI.isOperationLegal(OpV, MVT::i32)
| TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if (NVT == MVT::i32)
- hasCarry |= TLI.isOperationLegal(OpV, MVT::i32)
+ hasCarry = TLI.isOperationLegal(OpV, MVT::i32)
| TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if (NVT == MVT::i16)
- hasCarry |= TLI.isOperationLegal(OpV, MVT::i16)
+ hasCarry = TLI.isOperationLegal(OpV, MVT::i16)
| TLI.isOperationLegal(OpV, MVT::i8);
if(hasCarry) {