[llvm-commits] [llvm] r134568 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Devang Patel dpatel at apple.com
Wed Jul 6 17:05:58 PDT 2011


Author: dpatel
Date: Wed Jul  6 19:05:58 2011
New Revision: 134568

URL: http://llvm.org/viewvc/llvm-project?rev=134568&view=rev
Log:
Use DBG_VALUE location while inserting DBG_VALUE during alloca promotion.

Modified:
    llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=134568&r1=134567&r2=134568&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Wed Jul  6 19:05:58 2011
@@ -1164,12 +1164,12 @@
           DbgVal = DIB->insertDbgValueIntrinsic(SI->getOperand(0), 0, 
                                                 DIVariable(DVI->getVariable()),
                                                 SI);
-        DbgVal->setDebugLoc(SI->getDebugLoc());
+        DbgVal->setDebugLoc(DVI->getDebugLoc());
       } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
         Instruction *DbgVal = 
           DIB->insertDbgValueIntrinsic(LI->getOperand(0), 0, 
                                        DIVariable(DVI->getVariable()), LI);
-        DbgVal->setDebugLoc(LI->getDebugLoc());
+        DbgVal->setDebugLoc(DVI->getDebugLoc());
       }
     }
   }





More information about the llvm-commits mailing list