Skip to content

Commit ee56cb9

Browse files
sedymrakMatej Košík
andauthored
[lldb] remove a superfluous assignment statement (#152669)
`cfa_reg_contents` is a local variable. Whatever value we assign there right before the `return` statement will be lost anyway. Co-authored-by: Matej Košík <[email protected]>
1 parent 45d4e84 commit ee56cb9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lldb/source/Target/RegisterContextUnwind.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,6 @@ bool RegisterContextUnwind::ReadFrameAddress(
20262026
"Got an invalid CFA register value - reg %s (%d), value 0x%" PRIx64,
20272027
cfa_reg.GetName(), cfa_reg.GetAsKind(eRegisterKindLLDB),
20282028
cfa_reg_contents);
2029-
cfa_reg_contents = LLDB_INVALID_ADDRESS;
20302029
return false;
20312030
}
20322031
address = cfa_reg_contents + fa.GetOffset();

0 commit comments

Comments
 (0)