mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
remove 'statement with no effect' warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d86ea21dd
commit
209a0aea22
@ -170,7 +170,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
|
||||
MadeChange = true;
|
||||
}
|
||||
|
||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; I)
|
||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; )
|
||||
if (CallInst *CI = dyn_cast<CallInst>(I++))
|
||||
if (Function *Callee = CI->getCalledFunction())
|
||||
if (DoesNotReturn.count(CG[Callee]) && !isa<UnreachableInst>(I)) {
|
||||
|
Loading…
Reference in New Issue
Block a user