summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 3291c5be..473837b6 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -422,8 +422,12 @@ namespace {
}
}
-expr_t::ptr_op_t xact_t::lookup(const string& name)
+expr_t::ptr_op_t xact_t::lookup(const symbol_t::kind_t kind,
+ const string& name)
{
+ if (kind != symbol_t::FUNCTION)
+ return item_t::lookup(kind, name);
+
switch (name[0]) {
case 'c':
if (name == "code")
@@ -448,7 +452,7 @@ expr_t::ptr_op_t xact_t::lookup(const string& name)
break;
}
- return item_t::lookup(name);
+ return item_t::lookup(kind, name);
}
bool xact_t::valid() const