diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-11 14:29:32 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-11 14:29:32 -0500 |
| commit | 5fd6a9e337c848a7fcd5c5111e9eaf396cfc3ad5 (patch) | |
| tree | b35494cbcc8cfa769ceac7dfb4ba77a1a9689389 /plugins | |
| parent | 2b0afb5bb68f84fdc291ade40af31221636d58d9 (diff) | |
Fix Rust InstructionTextTokenKind not consulting the string token context
This caused a crash if we visited a builtin with a "fake" string. Where the token value is not actually the string type.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dwarf/dwarfdump/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dwarf/dwarfdump/src/lib.rs b/plugins/dwarf/dwarfdump/src/lib.rs index dabf88fb..7bdbd8a0 100644 --- a/plugins/dwarf/dwarfdump/src/lib.rs +++ b/plugins/dwarf/dwarfdump/src/lib.rs @@ -147,7 +147,7 @@ fn get_info_string<R: Reader>( if let Ok(attr_string) = attr_reader.to_string() { attr_line.push(InstructionTextToken::new( attr_string.as_ref(), - InstructionTextTokenKind::String { + InstructionTextTokenKind::StringContent { ty: StringType::Utf8String, }, )); |
