From fe46361719e86c75c9f7470c7f8ed0e3c3611bdf Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 7 Dec 2006 16:21:19 +0000 Subject: [PATCH] Revision 1.83 causes PR1037. Reverted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32305 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/VirtRegMap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 79d3b647fb4..8184075113d 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -97,8 +97,7 @@ void VirtRegMap::virtFolded(unsigned VirtReg, MachineInstr *OldMI, } ModRef MRInfo; - if (OldMI->getInstrDescriptor()-> - getOperandConstraint(OpNo, TOI::TIED_TO) != -1) { + if (TII.getOperandConstraint(OldMI->getOpcode(), OpNo, TOI::TIED_TO)) { // Folded a two-address operand. MRInfo = isModRef; } else if (OldMI->getOperand(OpNo).isDef()) {