mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Use getArgOperand instead of getOperand on a call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28588ff7aa
commit
8a9eebe6b9
@ -3134,7 +3134,7 @@ void ObjCARCOpt::OptimizeWeakCalls(Function &F) {
|
||||
UE = Alloca->use_end(); UI != UE; ) {
|
||||
CallInst *UserInst = cast<CallInst>(*UI++);
|
||||
if (!UserInst->use_empty())
|
||||
UserInst->replaceAllUsesWith(UserInst->getOperand(1));
|
||||
UserInst->replaceAllUsesWith(UserInst->getArgOperand(0));
|
||||
UserInst->eraseFromParent();
|
||||
}
|
||||
Alloca->eraseFromParent();
|
||||
|
Loading…
Reference in New Issue
Block a user