Skip to content

Commit 7a15102

Browse files
fixup! pass by const reference
1 parent 2fe9bb4 commit 7a15102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/include/lldb/Symbol/Variable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Variable : public UserID, public std::enable_shared_from_this<Variable> {
9090
bool IsInScope(StackFrame *frame);
9191

9292
/// Returns true if this variable is in scope at `addr` inside `block`.
93-
bool IsInScope(const Block &block, Address addr);
93+
bool IsInScope(const Block &block, const Address &addr);
9494

9595
bool LocationIsValidForFrame(StackFrame *frame);
9696

lldb/source/Symbol/Variable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ bool Variable::IsInScope(StackFrame *frame) {
302302
return false;
303303
}
304304

305-
bool Variable::IsInScope(const Block &block, Address addr) {
305+
bool Variable::IsInScope(const Block &block, const Address &addr) {
306306
SymbolContext variable_sc;
307307
CalculateSymbolContext(&variable_sc);
308308

0 commit comments

Comments
 (0)