From 1cd949be2cebee80eba9df209b709866b2b9ce13 Mon Sep 17 00:00:00 2001 From: Sagar Patel Date: Thu, 24 Oct 2019 16:49:12 -0400 Subject: [PATCH] Revert some parts of commit 1d3e6fd90 Some of the bpf-translation.cxx code was deleted accidentally. This caused the raw_tracepoint1.stp test to fail as the context variables could not be resolved. --- bpf-translate.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bpf-translate.cxx b/bpf-translate.cxx index 7e6815e7c..fad88cfdc 100644 --- a/bpf-translate.cxx +++ b/bpf-translate.cxx @@ -2476,6 +2476,12 @@ bpf_unparser::visit_symbol(symbol *s) vardecl *v = s->referent; assert (v->arity < 1); + if (bpf_context_vardecl *c = dynamic_cast(v)) + { + result = emit_context_var(c); + return; + } + auto g = glob.globals.find (v); if (g != glob.globals.end()) { -- 2.43.5