Revert r218778 while investigating buldbot breakage.
[oota-llvm.git] / lib / IR / DebugInfo.cpp
index 71c32fc969d329b3ba0eb19800f4b8bf53cebb36..4274d82d15875ac4166d5fbd9dbe4f09c21db954 100644 (file)
@@ -384,7 +384,7 @@ void DIDescriptor::replaceAllUsesWith(LLVMContext &VMContext, DIDescriptor D) {
   const Value *V = cast_or_null<Value>(DN);
   Node->replaceAllUsesWith(const_cast<Value *>(V));
   MDNode::deleteTemporary(Node);
-  DbgNode = D;
+  DbgNode = DN;
 }
 
 /// replaceAllUsesWith - Replace all uses of the MDNode used by this