[llvm] r187010 - Remove more dead/weird/misleading code.

Eric Christopher echristo at gmail.com
Tue Jul 23 17:15:01 PDT 2013


Author: echristo
Date: Tue Jul 23 19:15:01 2013
New Revision: 187010

URL: http://llvm.org/viewvc/llvm-project?rev=187010&view=rev
Log:
Remove more dead/weird/misleading code.

Modified:
    llvm/trunk/include/llvm/DebugInfo.h

Modified: llvm/trunk/include/llvm/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo.h?rev=187010&r1=187009&r2=187010&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/DebugInfo.h Tue Jul 23 19:15:01 2013
@@ -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());





More information about the llvm-commits mailing list