processor: drop set-but-unused variable

Change-Id: Idf3fe363c76734caa3e6a6cc20a53fd1d661188d
Reviewed-on: https://chromium-review.googlesource.com/438564
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mike Frysinger 2017-02-06 15:01:37 -05:00
parent 0e45a1268a
commit cc1deb4452

View file

@ -108,7 +108,7 @@ StackFrameMIPS* StackwalkerMIPS::GetCallerByCFIFrameInfo(
StackFrameMIPS* last_frame = static_cast<StackFrameMIPS*>(frames.back()); StackFrameMIPS* last_frame = static_cast<StackFrameMIPS*>(frames.back());
if (context_->context_flags & MD_CONTEXT_MIPS) { if (context_->context_flags & MD_CONTEXT_MIPS) {
uint32_t sp = 0, pc = 0; uint32_t pc = 0;
// Populate a dictionary with the valid register values in last_frame. // Populate a dictionary with the valid register values in last_frame.
CFIFrameInfo::RegisterValueMap<uint32_t> callee_registers; CFIFrameInfo::RegisterValueMap<uint32_t> callee_registers;
@ -129,7 +129,6 @@ StackFrameMIPS* StackwalkerMIPS::GetCallerByCFIFrameInfo(
caller_registers.find(".cfa"); caller_registers.find(".cfa");
if (entry != caller_registers.end()) { if (entry != caller_registers.end()) {
sp = entry->second;
caller_registers["$sp"] = entry->second; caller_registers["$sp"] = entry->second;
} }
@ -176,7 +175,7 @@ StackFrameMIPS* StackwalkerMIPS::GetCallerByCFIFrameInfo(
return frame.release(); return frame.release();
} else { } else {
uint64_t sp = 0, pc = 0; uint64_t pc = 0;
// Populate a dictionary with the valid register values in last_frame. // Populate a dictionary with the valid register values in last_frame.
CFIFrameInfo::RegisterValueMap<uint64_t> callee_registers; CFIFrameInfo::RegisterValueMap<uint64_t> callee_registers;
@ -197,7 +196,6 @@ StackFrameMIPS* StackwalkerMIPS::GetCallerByCFIFrameInfo(
caller_registers.find(".cfa"); caller_registers.find(".cfa");
if (entry != caller_registers.end()) { if (entry != caller_registers.end()) {
sp = entry->second;
caller_registers["$sp"] = entry->second; caller_registers["$sp"] = entry->second;
} }