[llvm-commits] [llvm] r83921 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Devang Patel
dpatel at apple.com
Mon Oct 12 16:10:55 PDT 2009
Author: dpatel
Date: Mon Oct 12 18:10:55 2009
New Revision: 83921
URL: http://llvm.org/viewvc/llvm-project?rev=83921&view=rev
Log:
Set default location for a function if it is not set.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=83921&r1=83920&r2=83921&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Oct 12 18:10:55 2009
@@ -385,6 +385,8 @@
DILocation DILoc(Dbg);
DebugLoc Loc = ExtractDebugLocation(DILoc, MF->getDebugLocInfo());
SDL->setCurDebugLoc(Loc);
+ if (MF->getDefaultDebugLoc().isUnknown())
+ MF->setDefaultDebugLoc(Loc);
}
}
if (!isa<TerminatorInst>(I))
More information about the llvm-commits
mailing list