forked from OSchip/llvm-project
Fix iterator invalidation problem with cast instructions
llvm-svn: 5876
This commit is contained in:
parent
2670371c9a
commit
ec6f16eae6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue