summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-30 12:40:35 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-30 12:40:35 +0000
commitd50572802e3615a7e062f90a67cbf517156513a0 (patch)
tree875b852a68d0a2081bde8e03928c6facc51d5cb1 /llvm/lib
parent3390e746fae14c099a096340e3446fdfb5a61ece (diff)
downloadbcm5719-llvm-d50572802e3615a7e062f90a67cbf517156513a0.tar.gz
bcm5719-llvm-d50572802e3615a7e062f90a67cbf517156513a0.zip
use ArgOperand API
llvm-svn: 107277
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/StripSymbols.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp
index 7ab87a66400..4f53f71fa3f 100644
--- a/llvm/lib/Transforms/IPO/StripSymbols.cpp
+++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp
@@ -268,8 +268,8 @@ bool StripDebugDeclare::runOnModule(Module &M) {
if (Declare) {
while (!Declare->use_empty()) {
CallInst *CI = cast<CallInst>(Declare->use_back());
- Value *Arg1 = CI->getOperand(1);
- Value *Arg2 = CI->getOperand(2);
+ Value *Arg1 = CI->getArgOperand(0);
+ Value *Arg2 = CI->getArgOperand(1);
assert(CI->use_empty() && "llvm.dbg intrinsic should have void result");
CI->eraseFromParent();
if (Arg1->use_empty()) {
OpenPOWER on IntegriCloud