diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-06 00:09:08 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-06 00:09:08 +0000 |
commit | 454e957979727bd29d75ec70623e50795f5824d9 (patch) | |
tree | b0249036c8bbf6ad602655a010daff41f68f7042 | |
parent | 6f3dc920b013df98be2d56c2f2628041477d75ee (diff) |
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
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8591da7621..a232d82acd 100644 --- 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); } } |