mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix a bug in my checkin last night that was breaking programs using invoke.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27c694bacb
commit
562cb66b84
@ -210,7 +210,7 @@ bool ADCE::doADCE() {
|
||||
if (F && AA->onlyReadsMemory(F)) {
|
||||
// The function cannot unwind. Convert it to a call with a branch
|
||||
// after it to the normal destination.
|
||||
std::vector<Value*> Args(II->op_begin()+1, II->op_end());
|
||||
std::vector<Value*> Args(II->op_begin()+3, II->op_end());
|
||||
std::string Name = II->getName(); II->setName("");
|
||||
Instruction *NewCall = new CallInst(F, Args, Name, II);
|
||||
II->replaceAllUsesWith(NewCall);
|
||||
|
Loading…
Reference in New Issue
Block a user