diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-11-09 00:39:46 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 16:52:25 +0200 |
commit | 1a7e904a7f08670205af52d30020ac601cf258c7 (patch) | |
tree | c2c92c39bcc8a889674c13abb7fae7cfe0c59090 /gcc | |
parent | 36ce08b23ed34ecda82a956998f39ce5afbcdec4 (diff) | |
download | gcc-1a7e904a7f08670205af52d30020ac601cf258c7.zip gcc-1a7e904a7f08670205af52d30020ac601cf258c7.tar.gz gcc-1a7e904a7f08670205af52d30020ac601cf258c7.tar.bz2 |
gccrs: late: Add bool builtin type
gcc/rust/ChangeLog:
* resolve/rust-late-name-resolver-2.0.cc (Late::setup_builtin_types):
Setup bool as builtin type.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/resolve/rust-late-name-resolver-2.0.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc index 3090bbe..ee06c4e 100644 --- a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc @@ -64,6 +64,7 @@ Late::setup_builtin_types () }; static const LType builtins[] = { + {LType ("bool", new TyTy::BoolType (next_hir_id ()))}, {LType ("u8", new TyTy::UintType (next_hir_id (), TyTy::UintType::U8))}, {LType ("u16", new TyTy::UintType (next_hir_id (), TyTy::UintType::U16))}, {LType ("u32", new TyTy::UintType (next_hir_id (), TyTy::UintType::U32))}, |