diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-19 16:32:15 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-19 16:32:15 +0000 |
commit | 53c9e5fbb9492824adfa1b004c198236fba1a93b (patch) | |
tree | 13cb4f328d0b3a4ff6bfc68db8ba26c6d122c42b | |
parent | d5b7f2b62cdb3a14162c57e27c06a27dda9a78c4 (diff) | |
download | external_llvm-53c9e5fbb9492824adfa1b004c198236fba1a93b.zip external_llvm-53c9e5fbb9492824adfa1b004c198236fba1a93b.tar.gz external_llvm-53c9e5fbb9492824adfa1b004c198236fba1a93b.tar.bz2 |
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193038 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 4d67dd1..ca416c4 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1080,10 +1080,9 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { // Add enumerators to enumeration type. for (unsigned i = 0, N = Elements.getNumElements(); i < N; ++i) { - DIE *ElemDie = NULL; DIDescriptor Enum(Elements.getElement(i)); if (Enum.isEnumerator()) - ElemDie = constructEnumTypeDIE(DIEnumerator(Enum), Buffer); + constructEnumTypeDIE(DIEnumerator(Enum), Buffer); } DIType DTy = resolve(CTy.getTypeDerivedFrom()); if (DTy) { |