commit | 28bea08e531452992ff1e25e8584883dfbd4c232 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Thu Aug 18 23:17:55 2011 +0000 |
committer | Devang Patel <dpatel@apple.com> | Thu Aug 18 23:17:55 2011 +0000 |
tree | c692a44d8770b22df8987a41306509c65ce9d16f | |
parent | fb23462889ff2dcd016a4b4169ebce94a878218e [diff] [blame] |
Eliminate unnecessary forwarding function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138006 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 93cbdae..d6be3f3 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1035,6 +1035,9 @@ return; DIGlobalVariable GV(N); + if (!GV.Verify()) + return; + DIE *VariableDIE = new DIE(GV.getTag()); // Add to map. insertDIE(N, VariableDIE);