From 452c1646c622edadb4b017491d04675ca8917d89 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 13 Nov 2009 21:45:04 +0000 Subject: [PATCH] Do not use value handle to wrap MDNode in DIDescriptor. llvm-svn: 88700 --- llvm/include/llvm/Analysis/DebugInfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h index b10a545b0aef..4321278903e7 100644 --- a/llvm/include/llvm/Analysis/DebugInfo.h +++ b/llvm/include/llvm/Analysis/DebugInfo.h @@ -44,9 +44,11 @@ namespace llvm { class Instruction; class LLVMContext; + /// DIDescriptor - A thin wraper around MDNode to access encoded debug info. This should not + /// be stored in a container, because underly MDNode may change in certain situations. class DIDescriptor { protected: - TrackingVH DbgNode; + MDNode *DbgNode; /// DIDescriptor constructor. If the specified node is non-null, check /// to make sure that the tag in the descriptor matches 'RequiredTag'. If