diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 17:57:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 17:57:48 +0000 |
commit | 3907d1120005e51ec2299c274619723ce6a0fff3 (patch) | |
tree | 9c4c2c6511b7314e3b586c480ab4ec617fbb055b | |
parent | 548f61d66a4ef198352831a8cdf623d1f9f927e0 (diff) |
Fix iterator invalidation problem with cast instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5876 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 21b1dedf12..13e4f0274f 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -1401,7 +1401,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB, 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); diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 21b1dedf12..13e4f0274f 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -1401,7 +1401,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB, 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); |