diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-01-05 17:49:01 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-01-06 10:13:39 +0000 |
commit | 1a97dbc6b54cd77ba7c3f00cb8dd2e870017a83c (patch) | |
tree | 8fc0819dcb268ce0a36e63d4947563aca056529b /gcc/rust/hir/rust-ast-lower-expr.h | |
parent | 4d590e5d210492444c4a2b69282970d683cf7c8d (diff) | |
download | gcc-1a97dbc6b54cd77ba7c3f00cb8dd2e870017a83c.zip gcc-1a97dbc6b54cd77ba7c3f00cb8dd2e870017a83c.tar.gz gcc-1a97dbc6b54cd77ba7c3f00cb8dd2e870017a83c.tar.bz2 |
Examine the Suffix hint on integers to apply apropriate TyTy type.
This change propagates the PrimitiveCoreType to AST and HIR so
the suffix can be examined.
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-expr.h')
-rw-r--r-- | gcc/rust/hir/rust-ast-lower-expr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-expr.h b/gcc/rust/hir/rust-ast-lower-expr.h index 6fdb32c..87ba0dc 100644 --- a/gcc/rust/hir/rust-ast-lower-expr.h +++ b/gcc/rust/hir/rust-ast-lower-expr.h @@ -328,6 +328,7 @@ public: UNKNOWN_LOCAL_DEFID); translated = new HIR::LiteralExpr (mapping, expr.as_string (), type, + expr.get_literal ().get_type_hint (), expr.get_locus ()); } |