diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-04 21:58:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-04 21:58:58 +0000 |
commit | b90584ae78a7acc4ac92e3ad52121a10c520b980 (patch) | |
tree | 590e9613737ff8eae27239d41495e29e66b52459 /lib/Transforms | |
parent | ff4f6eaf4e33a7e8ec1b8440f01324d37e16682e (diff) | |
download | external_llvm-b90584ae78a7acc4ac92e3ad52121a10c520b980.zip external_llvm-b90584ae78a7acc4ac92e3ad52121a10c520b980.tar.gz external_llvm-b90584ae78a7acc4ac92e3ad52121a10c520b980.tar.bz2 |
Preserve line number info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/MemCpyOptimizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/lib/Transforms/Scalar/MemCpyOptimizer.cpp index a3035cb..04edfd4 100644 --- a/lib/Transforms/Scalar/MemCpyOptimizer.cpp +++ b/lib/Transforms/Scalar/MemCpyOptimizer.cpp @@ -459,7 +459,10 @@ Instruction *MemCpyOpt::tryMergingIntoMemset(Instruction *StartInst, for (unsigned i = 0, e = Range.TheStores.size(); i != e; ++i) dbgs() << *Range.TheStores[i] << '\n'; dbgs() << "With: " << *AMemSet << '\n'); - + + if (!Range.TheStores.empty()) + AMemSet->setDebugLoc(Range.TheStores[0]->getDebugLoc()); + // Zap all the stores. for (SmallVector<Instruction*, 16>::const_iterator SI = Range.TheStores.begin(), |