diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-08-29 17:24:03 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:34 +0100 |
commit | 1501eed45018df1365c7d2a06772ca82dca1b8fe (patch) | |
tree | 40eae1808b1f0350e3a7c66dcdf3273c6945b2f8 /gcc/rust/parse/rust-parse.cc | |
parent | e6cd1103050c48242923ae6f862437110331beb9 (diff) | |
download | gcc-1501eed45018df1365c7d2a06772ca82dca1b8fe.zip gcc-1501eed45018df1365c7d2a06772ca82dca1b8fe.tar.gz gcc-1501eed45018df1365c7d2a06772ca82dca1b8fe.tar.bz2 |
gccrs: Add missing linemap to lexer
When some proc macro create tokens and later have some code referring to
those created tokens the code was missing a linemap since the pointer
was null, throwing an ICE.
gcc/rust/ChangeLog:
* expand/rust-proc-macro.cc (tokenstream_from_string): Change
linemap null pointer to the current linemap.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse.cc')
0 files changed, 0 insertions, 0 deletions