Remove more dead/weird/misleading code.
authorEric Christopher <echristo@gmail.com>
Wed, 24 Jul 2013 00:15:01 +0000 (00:15 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 24 Jul 2013 00:15:01 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187010 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h

index 450404ec619fc9ecbc019e589426b5c368f4c528..0323c9d3f2b7f9f941c3a30a86225eb9a979e6ce 100644 (file)
@@ -327,10 +327,7 @@ namespace llvm {
     void printInternal(raw_ostream &OS) const;
   public:
     explicit DICompositeType(const MDNode *N = 0)
-      : DIDerivedType(N) {
-      if (N && !isCompositeType())
-        DbgNode = 0;
-    }
+      : DIDerivedType(N) {}
 
     DIArray getTypeArray() const { return getFieldAs<DIArray>(10); }
     void setTypeArray(DIArray Elements, DIArray TParams = DIArray());