Preserve line no. info.

Radar 9097659


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2011-03-07 22:43:45 +00:00
parent 1973b3e254
commit cd77a50e63
2 changed files with 51 additions and 2 deletions

View File

@ -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.