summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-07 22:43:45 +0000
committerDevang Patel <dpatel@apple.com>2011-03-07 22:43:45 +0000
commitd00c628f8f1f2c2ae8109d1a86a2ddf74f5d6ff0 (patch)
tree8365d9f0037867e93b09973995ee71a0dfa2541f /llvm/lib/Transforms
parent27f942fa602f283bc7ad18dfd3a3bd720ddedc65 (diff)
downloadbcm5719-llvm-d00c628f8f1f2c2ae8109d1a86a2ddf74f5d6ff0.tar.gz
bcm5719-llvm-d00c628f8f1f2c2ae8109d1a86a2ddf74f5d6ff0.zip
Preserve line no. info.
Radar 9097659 llvm-svn: 127182
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index f8ce214750a..e31ccc8df10 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -493,7 +493,7 @@ processLoopStridedStore(Value *DestPtr, unsigned StoreSize,
Value *NumBytes =
Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator());
- Value *NewCall;
+ CallInst *NewCall;
if (SplatValue)
NewCall = Builder.CreateMemSet(BasePtr, SplatValue,NumBytes,StoreAlignment);
else {
@@ -517,7 +517,7 @@ processLoopStridedStore(Value *DestPtr, unsigned StoreSize,
DEBUG(dbgs() << " Formed memset: " << *NewCall << "\n"
<< " from store to: " << *Ev << " at: " << *TheStore << "\n");
- (void)NewCall;
+ NewCall->setDebugLoc(TheStore->getDebugLoc());
// Okay, the memset has been formed. Zap the original store and anything that
// feeds into it.
OpenPOWER on IntegriCloud