mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +00:00
remove 'statement with no effect' warning
llvm-svn: 21600
This commit is contained in:
parent
2a00530fa7
commit
96704dee49
@ -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