From 028091195d763190d9b57ae316c8601fe223c02c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Jan 2021 12:23:01 +0000 Subject: [PATCH] [DWARF] DWARFDebugLoc::dumpRawEntry - remove dead stores. NFCI. Don't bother zeroing local (unused) variables just before returning. Fixes clang static analyzer warning. --- llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index 44b41077814..cdffb36741c 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -260,7 +260,6 @@ void DWARFDebugLoc::dumpRawEntry(const DWARFLocationEntry &Entry, Value1 = Entry.Value1; break; case dwarf::DW_LLE_end_of_list: - Value0 = Value1 = 0; return; default: llvm_unreachable("Not possible in DWARF4!"); -- 2.11.0