Changes in directory llvm/lib/CodeGen:
VirtRegMap.cpp updated: 1.106 -> 1.107 --- Log message: Don't call getOperandConstraint() if operand index is greater than TID->numOperands. --- Diffs of the changes: (+2 -1) VirtRegMap.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/CodeGen/VirtRegMap.cpp diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.106 llvm/lib/CodeGen/VirtRegMap.cpp:1.107 --- llvm/lib/CodeGen/VirtRegMap.cpp:1.106 Mon Mar 26 17:40:42 2007 +++ llvm/lib/CodeGen/VirtRegMap.cpp Mon Mar 26 19:48:28 2007 @@ -965,7 +965,8 @@ if (WasKill) { const TargetInstrDescriptor *NTID = NextMII->getInstrDescriptor(); - if (NTID->getOperandConstraint(UIdx, TOI::TIED_TO) == -1) + if (UIdx >= NTID->numOperands || + NTID->getOperandConstraint(UIdx, TOI::TIED_TO) == -1) MOU.setIsKill(); } Spills.addLastUse(InReg, &(*NextMII)); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits