commit | 93d2e89b3e82de8ab53b252b5f86de4e3b6980b6 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Oct 06 00:09:08 2009 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Oct 06 00:09:08 2009 +0000 |
tree | b0249036c8bbf6ad602655a010daff41f68f7042 | |
parent | 95d477eff9aa5b68b022546565f0a41eee38cb89 [diff] [blame] |
Set default location for the function if it is not already set. This code is not yet enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83349 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8591da7..a232d82 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -747,6 +747,8 @@ DebugLoc Loc = ExtractDebugLocation(DILoc, MF.getDebugLocInfo()); FastIS->setCurDebugLoc(Loc); + if (MF.getDefaultDebugLoc().isUnknown()) + MF.setDefaultDebugLoc(Loc); } }