mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Use getArgOperand instead of getOperand on a call.
llvm-svn: 146384
This commit is contained in:
parent
61f78d27b0
commit
ee8b344c67
@ -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