]> granicus.if.org Git - clang/commitdiff
Simplify
authorDevang Patel <dpatel@apple.com>
Tue, 10 Aug 2010 20:16:57 +0000 (20:16 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 10 Aug 2010 20:16:57 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110716 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 4e020f92cea032b7789e128c10665b69a9900e73..bb9f1cbc8add836a9f95063480b8989fe54d3b29 100644 (file)
@@ -1814,8 +1814,7 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD,
     return;
   DebugFactory.CreateGlobalVariable(Unit, Name, Name, Name, Unit,
                                     getLineNumber(VD->getLocation()),
-                                    getOrCreateType(VD->getType(), Unit),
-                                    true, true, Init);
+                                    Ty, true, true, Init);
 }
 
 /// getOrCreateNamesSpace - Return namespace descriptor for the given