projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
da1d660
)
Do not forget DebugLoc!
author
Devang Patel
<dpatel@apple.com>
Tue, 15 Feb 2011 02:02:30 +0000
(
02:02
+0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 15 Feb 2011 02:02:30 +0000
(
02:02
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125547
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstructionCombining.cpp
b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 7208ad0c7cc4729ea824aa3391833d330c5e09de..37123d0621ebc306139a1954b152d66a6dd331ec 100644
(file)
--- a/
lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/
lib/Transforms/InstCombine/InstructionCombining.cpp
@@
-1588,6
+1588,7
@@
bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
DEBUG(errs() << "IC: Old = " << *I << '\n'
<< " New = " << *Result << '\n');
+ Result->setDebugLoc(I->getDebugLoc());
// Everything uses the new instruction now.
I->replaceAllUsesWith(Result);