diff options
author | Devang Patel <dpatel@apple.com> | 2011-07-07 00:05:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-07-07 00:05:58 +0000 |
commit | a4acb008cb2a9953d9cb4c90ecf6424bd32ebc0c (patch) | |
tree | 039f372f66799f6826261110cd445a9dffa1be11 | |
parent | 447c40c4028f1563826ea75f47fd3ec48c7a74ad (diff) | |
download | external_llvm-a4acb008cb2a9953d9cb4c90ecf6424bd32ebc0c.zip external_llvm-a4acb008cb2a9953d9cb4c90ecf6424bd32ebc0c.tar.gz external_llvm-a4acb008cb2a9953d9cb4c90ecf6424bd32ebc0c.tar.bz2 |
Use DBG_VALUE location while inserting DBG_VALUE during alloca promotion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134568 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 310cd83..7d6349c 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -1164,12 +1164,12 @@ public: 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()); } } } |