diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-29 20:38:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-29 20:38:55 +0000 |
commit | c1f7c1d4696cd9ca6e43107a5cc6740b978740dd (patch) | |
tree | 38397b27bf17f9df10b68a596a23ace74e463096 /llvm/lib/Transforms/Scalar/LoopRotation.cpp | |
parent | 2b2e06d1a35bdcfbeffdfe7b5f75e638089ff642 (diff) | |
download | bcm5719-llvm-c1f7c1d4696cd9ca6e43107a5cc6740b978740dd.tar.gz bcm5719-llvm-c1f7c1d4696cd9ca6e43107a5cc6740b978740dd.zip |
Preserve line number information.
llvm-svn: 130536
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopRotation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index e7b1a031f84..47dced37c3a 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -326,7 +326,8 @@ bool LoopRotate::rotateLoop(Loop *L) { // We can fold the conditional branch in the preheader, this makes things // simpler. The first step is to remove the extra edge to the Exit block. Exit->removePredecessor(OrigPreheader, true /*preserve LCSSA*/); - BranchInst::Create(NewHeader, PHBI); + BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); + NewBI->setDebugLoc(PHBI->getDebugLoc()); PHBI->eraseFromParent(); // With our CFG finalized, update DomTree if it is available. |