summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-05 21:48:22 +0000
committerDevang Patel <dpatel@apple.com>2011-07-05 21:48:22 +0000
commitc5ecbdc1896f1cc089372feef3191ace2f840898 (patch)
tree153950575f71b23503410aa8eb2b9fd9bc3eb344 /lib/Transforms/Scalar/IndVarSimplify.cpp
parentc5e913879756497ac78f9243af84883d850ef630 (diff)
downloadllvm-c5ecbdc1896f1cc089372feef3191ace2f840898.tar.gz
llvm-c5ecbdc1896f1cc089372feef3191ace2f840898.tar.bz2
llvm-c5ecbdc1896f1cc089372feef3191ace2f840898.tar.xz
Preserve debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 477f87a536..2b0dfc6ae6 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/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