mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Zap some dead code pointed out by Chandler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -424,10 +424,6 @@ void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
|||||||
//
|
//
|
||||||
BasicBlock::iterator I = NewBB->begin();
|
BasicBlock::iterator I = NewBB->begin();
|
||||||
|
|
||||||
DebugLoc TheCallDL;
|
|
||||||
if (TheCall)
|
|
||||||
TheCallDL = TheCall->getDebugLoc();
|
|
||||||
|
|
||||||
// Handle PHI nodes specially, as we have to remove references to dead
|
// Handle PHI nodes specially, as we have to remove references to dead
|
||||||
// blocks.
|
// blocks.
|
||||||
if (PHINode *PN = dyn_cast<PHINode>(I)) {
|
if (PHINode *PN = dyn_cast<PHINode>(I)) {
|
||||||
|
Reference in New Issue
Block a user