diff options
| author | Devang Patel <dpatel@apple.com> | 2011-07-05 21:48:22 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-07-05 21:48:22 +0000 |
| commit | c3239d3965b42577a5d3715446c450986721e005 (patch) | |
| tree | 69bf12ecbca81610d7162e5848f58fb9964b72c2 /llvm/lib/Transforms/Scalar | |
| parent | 347a112df34aabad3de7f7a1614759b4c1eb352d (diff) | |
| download | bcm5719-llvm-c3239d3965b42577a5d3715446c450986721e005.tar.gz bcm5719-llvm-c3239d3965b42577a5d3715446c450986721e005.zip | |
Preserve debug loc.
llvm-svn: 134441
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 477f87a536f..2b0dfc6ae66 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -339,7 +339,7 @@ LinearFunctionTestReplace(Loop *L, << " RHS:\t" << *RHS << "\n"); ICmpInst *Cond = new ICmpInst(BI, Opcode, CmpIndVar, ExitCnt, "exitcond"); - + Cond->setDebugLoc(BI->getDebugLoc()); Value *OrigCond = BI->getCondition(); // It's tempting to use replaceAllUsesWith here to fully replace the old // comparison, but that's not immediately safe, since users of the old |

