diff options
author | Devang Patel <dpatel@apple.com> | 2011-08-18 23:17:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-08-18 23:17:55 +0000 |
commit | 28bea08e531452992ff1e25e8584883dfbd4c232 (patch) | |
tree | c692a44d8770b22df8987a41306509c65ce9d16f /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | fb23462889ff2dcd016a4b4169ebce94a878218e (diff) |
Eliminate unnecessary forwarding function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 93cbdae7b0..d6be3f3f5b 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1035,6 +1035,9 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { return; DIGlobalVariable GV(N); + if (!GV.Verify()) + return; + DIE *VariableDIE = new DIE(GV.getTag()); // Add to map. insertDIE(N, VariableDIE); |