Clear out the CurDebugLoc info when doing a 'clear' on the SDL object.
authorBill Wendling <isanbard@gmail.com>
Fri, 6 Feb 2009 21:36:23 +0000 (21:36 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 6 Feb 2009 21:36:23 +0000 (21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

index 7690220ddb3bb154d0878d6823598bea5a8db77b..e70c1148fc7ab17ff48e7003bb44f70c0f777569 100644 (file)
@@ -757,6 +757,7 @@ void SelectionDAGLowering::clear() {
   PendingLoads.clear();
   PendingExports.clear();
   DAG.clear();
+  CurDebugLoc = DebugLoc::getUnknownLoc();
 }
 
 /// getRoot - Return the current virtual root of the Selection DAG,