From ae54968ec2e2cac6cace95b25958ed5550d2aad9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 9 Mar 2026 17:02:36 +0100 Subject: asan: ignore names from macro arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are usually capitalized, and thus they are not going to be following the usual zp_/m_/wr_ pattern. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/object.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/xixanta/src/object.rs') diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs index c70afb7..c16ddb0 100644 --- a/lib/xixanta/src/object.rs +++ b/lib/xixanta/src/object.rs @@ -119,6 +119,7 @@ impl Bundle { pub enum ObjectType { Address, Value, + Argument, } /// Bundle and metadata which is stored on the context table for a given @@ -241,7 +242,7 @@ impl Context { match self.map.get_mut(scope_name) { Some(scope) => match scope.get_mut(var_name) { Some(var) => match var.object_type { - ObjectType::Value => { + ObjectType::Value | ObjectType::Argument => { var.accessed += 1; Ok(var.clone()) } -- cgit v1.2.3