diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-01-21 16:19:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 16:19:30 +0000 |
commit | a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2 (patch) | |
tree | ed72786f6e720f99e1648233c86bf2c77d9c393c /gcc/rust/backend/rust-compile.cc | |
parent | b02824c6a798a78657568e7d831bd10529d63e37 (diff) | |
parent | b4587fb281d3066e4591a5067e2fa9a79df272aa (diff) | |
download | gcc-a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2.zip gcc-a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2.tar.gz gcc-a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2.tar.bz2 |
Merge #879
879: Record correct location when compiling ADT types r=philberty a=dafaust
When compiling struct and union types, we were using the wrong HirId
to lookup location information. The resulting GIMPLE nodes therefore
had no source location information, which made them indistinguishable
as user-declarations versus decls created by the compiler. As a result,
the type names were not shown in GIMPLE dumps, e.g. using
-fdump-tree-gimple.
Fix the location lookup, so these types are properly printed, and add a
simple test checking as much.
Fixes: #877
Co-authored-by: David Faust <david.faust@oracle.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile.cc')
0 files changed, 0 insertions, 0 deletions