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 | 41e97da74f8f9cfdffbdcf48cb6ec41c4c3c4624 (patch) | |
| tree | e219ce0df054122bac2731cc7d7de119b6d52e87 /llvm/lib/Transforms | |
| parent | c3df93aa0d083fdb6bd982480bb72b421585b5c0 (diff) | |
| download | bcm5719-llvm-41e97da74f8f9cfdffbdcf48cb6ec41c4c3c4624.tar.gz bcm5719-llvm-41e97da74f8f9cfdffbdcf48cb6ec41c4c3c4624.zip | |
Use DBG_VALUE location while inserting DBG_VALUE during alloca promotion.
llvm-svn: 134568
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 310cd83c849..7d6349cf4e7 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/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());        }      }    } | 

