diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-03-13 13:07:37 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-03-13 13:07:37 +0000 |
commit | f4321a3a438833dade457e24da6e1e6907cabcd5 (patch) | |
tree | c85d66c8eed932ec34c564ea47ab1fc2a30b1eeb /lib/Debugger | |
parent | 2e8a77ff42a325463f40a67e46b2eeb9ce05a350 (diff) | |
download | external_llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.zip external_llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.tar.gz external_llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.tar.bz2 |
Handle the removal of the debug chain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index ebca794..9ed0db2 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/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 || |