1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[DWARF] DWARFDebugLoc::dumpRawEntry - remove dead stores. NFCI.

Don't bother zeroing local (unused) variables just before returning.

Fixes clang static analyzer warning.
This commit is contained in:
Simon Pilgrim 2021-01-07 12:23:01 +00:00
parent 5cd8182360
commit b9e2a9c89d

View File

@ -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!");