[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 15 19:47:01 PST 2004
Changes in directory llvm/lib/CodeGen:
RegAllocSimple.cpp updated: 1.54 -> 1.55
---
Log message:
Fix PR294
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.54 llvm/lib/CodeGen/RegAllocSimple.cpp:1.55
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.54 Sun Feb 22 22:12:30 2004
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Mon Mar 15 19:45:55 2004
@@ -172,7 +172,8 @@
for (int i = MI->getNumOperands() - 1; i >= 0; --i) {
MachineOperand &op = MI->getOperand(i);
- if (op.isRegister() && MRegisterInfo::isVirtualRegister(op.getReg())) {
+ if (op.isRegister() && op.getReg() &&
+ MRegisterInfo::isVirtualRegister(op.getReg())) {
unsigned virtualReg = (unsigned) op.getReg();
DEBUG(std::cerr << "op: " << op << "\n");
DEBUG(std::cerr << "\t inst[" << i << "]: ";
More information about the llvm-commits
mailing list