[llvm-commits] [llvm] r153150 - /llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp

Eric Christopher echristo at apple.com
Tue Mar 20 16:28:58 PDT 2012


Author: echristo
Date: Tue Mar 20 18:28:58 2012
New Revision: 153150

URL: http://llvm.org/viewvc/llvm-project?rev=153150&view=rev
Log:
Zap some dead code pointed out by Chandler.

Modified:
    llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp

Modified: llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp?rev=153150&r1=153149&r2=153150&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp Tue Mar 20 18:28:58 2012
@@ -424,10 +424,6 @@
     //
     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)) {





More information about the llvm-commits mailing list