aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-21 16:19:30 +0000
committerGitHub <noreply@github.com>2022-01-21 16:19:30 +0000
commita6c5dbadc3c9023821244bd4af4e78ad9d8f63f2 (patch)
treeed72786f6e720f99e1648233c86bf2c77d9c393c /gcc/rust/backend/rust-compile.cc
parentb02824c6a798a78657568e7d831bd10529d63e37 (diff)
parentb4587fb281d3066e4591a5067e2fa9a79df272aa (diff)
downloadgcc-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