Author: Simon Pilgrim Date: 2021-01-07T12:53:28Z New Revision: 028091195d763190d9b57ae316c8601fe223c02c
URL: https://github.com/llvm/llvm-project/commit/028091195d763190d9b57ae316c8601fe223c02c DIFF: https://github.com/llvm/llvm-project/commit/028091195d763190d9b57ae316c8601fe223c02c.diff LOG: [DWARF] DWARFDebugLoc::dumpRawEntry - remove dead stores. NFCI. Don't bother zeroing local (unused) variables just before returning. Fixes clang static analyzer warning. Added: Modified: llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp Removed: ################################################################################ diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index 44b410778146..cdffb36741c8 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!"); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits