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/Transforms/IPO/StripSymbols.cpp | |
parent | 2e8a77ff42a325463f40a67e46b2eeb9ce05a350 (diff) | |
download | llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.tar.gz llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.tar.bz2 llvm-f4321a3a438833dade457e24da6e1e6907cabcd5.tar.xz |
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/Transforms/IPO/StripSymbols.cpp')
-rw-r--r-- | lib/Transforms/IPO/StripSymbols.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index 8fcbdd16e5..fce787c78b 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -116,7 +116,7 @@ bool StripSymbols::runOnModule(Module &M) { Value *RV = UndefValue::get(StopPoint->getFunctionType()->getReturnType()); while (!StopPoint->use_empty()) { CallInst *CI = cast<CallInst>(StopPoint->use_back()); - Value *Arg = CI->getOperand(4); + Value *Arg = CI->getOperand(3); CI->replaceAllUsesWith(RV); CI->eraseFromParent(); if (Arg->use_empty()) |