From 03c34d0d3c65c89e8eda1965ab550afd7b354bb3 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 6 Feb 2009 21:36:23 +0000 Subject: [PATCH] Clear out the CurDebugLoc info when doing a 'clear' on the SDL object. llvm-svn: 63967 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 7690220ddb3b..e70c1148fc7a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -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,