[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 23 12:58:01 PDT 2003
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.88 -> 1.89
---
Log message:
Fix iterator invalidation problem with cast instructions
---
Diffs of the changes:
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.88 llvm/lib/Target/X86/InstSelectSimple.cpp:1.89
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.88 Wed Apr 23 12:22:12 2003
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Wed Apr 23 12:57:48 2003
@@ -1401,7 +1401,7 @@
MachineBasicBlock::iterator &IP,
Value *Src, const Type *DestTy,
unsigned DestReg) {
- unsigned SrcReg = getReg(Src);
+ unsigned SrcReg = getReg(Src, BB, IP);
const Type *SrcTy = Src->getType();
unsigned SrcClass = getClassB(SrcTy);
unsigned DestClass = getClassB(DestTy);
More information about the llvm-commits
mailing list