From f4124a72c125ab8679d5096ad82d45cd142dfc14 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Fri, 5 Feb 2016 09:24:34 +0000 Subject: [DebugInfo] Eliminate compilation warning about used variable LSDA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The waring was: lib/DebugInfo/DWARF/DWARFDebugFrame.cpp:643:20: warning: variable ‘LSDA’ set but not used llvm-svn: 259877 --- llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 3f8ed43151c..6d59a8e1d24 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -640,9 +640,8 @@ void DWARFDebugFrame::parse(DataExtractor Data) { Offset + static_cast(AugmentationLength); // Decode the LSDA if the CIE augmentation string said we should. - uint64_t LSDA = 0; if (Cie->getLSDAPointerEncoding() != DW_EH_PE_omit) - LSDA = readPointer(Data, Offset, Cie->getLSDAPointerEncoding()); + readPointer(Data, Offset, Cie->getLSDAPointerEncoding()); if (Offset != EndAugmentationOffset) ReportError("Parsing augmentation data at %lx failed"); -- cgit v1.2.3