diff options
| author | Joe Rozner <joe@deadbytes.net> | 2022-01-27 23:53:31 -0800 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2022-01-28 03:07:59 -0500 |
| commit | 6c94811ba217acc3be17b5057928a1adaf7f0ab0 (patch) | |
| tree | 1cf293bfd83b40dd36b6d85f9cdd21d8e9800125 | |
| parent | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (diff) | |
rust: fix semantic class for flag write cb
Current implementation returns the flag write id rather than the flag
class id
| -rw-r--r-- | rust/src/architecture.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 6df8b19c..7ce672b8 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1729,7 +1729,8 @@ where let custom_arch = unsafe { &*(ctxt as *mut A) }; custom_arch .flag_write_from_id(write_type) - .map(|w| w.id()) + .map(|w| w.class()) + .and_then(|c| c.map(|c| c.id())) .unwrap_or(0) } |
