aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-object-export.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-02 14:28:27 +0000
committerGitHub <noreply@github.com>2022-02-02 14:28:27 +0000
commitf7f14de056eb3887e70f29b0f29da4025f746559 (patch)
tree7a9abfd0b49074b315715fa1b2cef51951cabdca /gcc/rust/rust-object-export.cc
parent6e5f8f76cbe47880ceae1bcf0bf7f07f601517ec (diff)
parent46ee20dbdbb02b40ae199293dfa774fafad72c0e (diff)
downloadgcc-f7f14de056eb3887e70f29b0f29da4025f746559.zip
gcc-f7f14de056eb3887e70f29b0f29da4025f746559.tar.gz
gcc-f7f14de056eb3887e70f29b0f29da4025f746559.tar.bz2
Merge #902
902: Fix enum variant discriminant values r=philberty a=philberty Enum discriminants before this patch were either: - The hir-id of the tuple/struct variant - The expression of the specified discriminant - Computed int64 of the dataless variant Each of these had tree ways of computing the qualifier this patch changes this to be more in line with rust to compute the values unless its a specified discriminant value. In order to compile this we now create an implicit HIR::LiteralExpr and feed this into our constexpr code so it reuses the same path as the variants with a specified constant discriminant. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/rust-object-export.cc')
0 files changed, 0 insertions, 0 deletions