summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-23 17:57:48 +0000
committerChris Lattner <sabre@nondot.org>2003-04-23 17:57:48 +0000
commitec6f16eae620b5f8ce98e92f54b78d15f87b19d1 (patch)
treebe50fe5be5795e07fd8603fcc47b47cd255efc6d /llvm/lib
parent2670371c9a890d061e80080b856cb5581ae63581 (diff)
downloadbcm5719-llvm-ec6f16eae620b5f8ce98e92f54b78d15f87b19d1.tar.gz
bcm5719-llvm-ec6f16eae620b5f8ce98e92f54b78d15f87b19d1.zip
Fix iterator invalidation problem with cast instructions
llvm-svn: 5876
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 21b1dedf12a..13e4f0274f1 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud