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:
6f3dc92
)
Set default location for the function if it is not already set.
author
Devang Patel
<dpatel@apple.com>
Tue, 6 Oct 2009 00:09:08 +0000
(
00:09
+0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 6 Oct 2009 00:09:08 +0000
(
00:09
+0000)
This code is not yet enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83349
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 8591da7621af6d2152e0e4a7361a8b03f518d87e..a232d82acd1664140fcf75046149cf69bd7f44cf 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-747,6
+747,8
@@
void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
DebugLoc Loc = ExtractDebugLocation(DILoc,
MF.getDebugLocInfo());
FastIS->setCurDebugLoc(Loc);
+ if (MF.getDefaultDebugLoc().isUnknown())
+ MF.setDefaultDebugLoc(Loc);
}
}