diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
| -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());        }      }    } | 

