[llvm] r259877 - [DebugInfo] Eliminate compilation warning about used variable LSDA
Dmitry Polukhin via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 01:24:35 PST 2016
Author: dpolukhin
Date: Fri Feb 5 03:24:34 2016
New Revision: 259877
URL: http://llvm.org/viewvc/llvm-project?rev=259877&view=rev
Log:
[DebugInfo] Eliminate compilation warning about used variable LSDA
The waring was:
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp:643:20: warning: variable ‘LSDA’ set but not used
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp?rev=259877&r1=259876&r2=259877&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp Fri Feb 5 03:24:34 2016
@@ -640,9 +640,8 @@ void DWARFDebugFrame::parse(DataExtracto
Offset + static_cast<uint32_t>(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");
More information about the llvm-commits
mailing list