commit | 29a68fb5b733119dd8295a4f7c7d069b9f78f0a3 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Tue Mar 20 19:32:11 2007 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Tue Mar 20 19:32:11 2007 +0000 |
tree | 6bb4b9ce175c6dc627649f89511ef54bb550fe63 | |
parent | 64c88d741e51281edc15dcfc27dfaa500a89d43b [diff] [blame] |
Minor bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35219 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5623776..70506e3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -4009,7 +4009,8 @@ // Check if it is possible to fold the expression to address mode. if (UseTy && - TLI.isLegalAddressExpression(Instruction::Add, BinOp->getOperand(0), + TLI.isLegalAddressExpression(BinOp->getOpcode(), + BinOp->getOperand(0), BinOp->getOperand(1), UseTy)) { DestBBs.insert(UserBB); MadeChange = true;