aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Debugger/ProgramInfo.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-13 13:07:37 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-13 13:07:37 +0000
commitacb6e342777a501ef6d9ac2e70d0c19086a6c2d7 (patch)
tree91e273bc0d11aa98f37f528c77188ee873a7ddf1 /llvm/lib/Debugger/ProgramInfo.cpp
parentfe4c7fb7ae934d1d2edf51b9ca762d378e2a2b77 (diff)
downloadllvm-acb6e342777a501ef6d9ac2e70d0c19086a6c2d7.zip
llvm-acb6e342777a501ef6d9ac2e70d0c19086a6c2d7.tar.gz
llvm-acb6e342777a501ef6d9ac2e70d0c19086a6c2d7.tar.bz2
Handle the removal of the debug chain.
llvm-svn: 26729
Diffstat (limited to 'llvm/lib/Debugger/ProgramInfo.cpp')
-rw-r--r--llvm/lib/Debugger/ProgramInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp
index ebca794..9ed0db2 100644
--- a/llvm/lib/Debugger/ProgramInfo.cpp
+++ b/llvm/lib/Debugger/ProgramInfo.cpp
@@ -63,11 +63,11 @@ static const GlobalVariable *getNextStopPoint(const Value *V, unsigned &LineNo,
if (F->getIntrinsicID() == Intrinsic::dbg_stoppoint) {
unsigned CurLineNo = ~0, CurColNo = ~0;
const GlobalVariable *CurDesc = 0;
- if (const ConstantInt *C = dyn_cast<ConstantInt>(CI->getOperand(2)))
+ if (const ConstantInt *C = dyn_cast<ConstantInt>(CI->getOperand(1)))
CurLineNo = C->getRawValue();
- if (const ConstantInt *C = dyn_cast<ConstantInt>(CI->getOperand(3)))
+ if (const ConstantInt *C = dyn_cast<ConstantInt>(CI->getOperand(2)))
CurColNo = C->getRawValue();
- const Value *Op = CI->getOperand(4);
+ const Value *Op = CI->getOperand(3);
if ((CurDesc = dyn_cast<GlobalVariable>(Op)) &&
(LineNo < LastLineNo ||