aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-08-10 20:16:57 +0000
committerDevang Patel <dpatel@apple.com>2010-08-10 20:16:57 +0000
commit4c4acc0352037528c710d798c0d2bc771a6782ac (patch)
tree2157ab6407786743b1e3620f9ee73fc529bd99fb /lib/CodeGen/CGDebugInfo.cpp
parent6a9bb30819628f312a3d99f67221f7e796a38e83 (diff)
Simplify
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 4e020f92ce..bb9f1cbc8a 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -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