Zap some dead code pointed out by Chandler.
authorEric Christopher <echristo@apple.com>
Tue, 20 Mar 2012 23:28:58 +0000 (23:28 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 20 Mar 2012 23:28:58 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153150 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/CloneFunction.cpp

index 93125df1460e55964f274fec28e7e64b8b1bc711..1b28c35238e9ca264324d3506dd1a7e4a2e6548c 100644 (file)
@@ -424,10 +424,6 @@ void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
     //
     BasicBlock::iterator I = NewBB->begin();
 
-    DebugLoc TheCallDL;
-    if (TheCall) 
-      TheCallDL = TheCall->getDebugLoc();
-    
     // Handle PHI nodes specially, as we have to remove references to dead
     // blocks.
     if (PHINode *PN = dyn_cast<PHINode>(I)) {