Fix this to properly clear the FastISel debug location. Thanks to
authorDan Gohman <gohman@apple.com>
Mon, 14 Dec 2009 23:08:09 +0000 (23:08 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 14 Dec 2009 23:08:09 +0000 (23:08 +0000)
Bill for spotting this!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 93b56e1f946de2087bf9499ce9c3e8a42ea55cfc..a640c7dc2089d7e7439dc8ed11c05f96e0976a0b 100644 (file)
@@ -390,7 +390,7 @@ static void ResetDebugLoc(SelectionDAGBuilder *SDB,
                           FastISel *FastIS) {
   SDB->setCurDebugLoc(DebugLoc::getUnknownLoc());
   if (FastIS)
-    SDB->setCurDebugLoc(DebugLoc::getUnknownLoc());
+    FastIS->setCurDebugLoc(DebugLoc::getUnknownLoc());
 }
 
 void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB,