]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
late: Add bool builtin type
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 8 Nov 2023 23:39:46 +0000 (00:39 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 26 Mar 2024 17:35:02 +0000 (17:35 +0000)
gcc/rust/ChangeLog:

* resolve/rust-late-name-resolver-2.0.cc (Late::setup_builtin_types):
Setup bool as builtin type.

gcc/rust/resolve/rust-late-name-resolver-2.0.cc

index 3090bbeff2a9f5109eae2adbc233a1856b22c9a6..ee06c4efc2ea3c80a65aff68a26557999598c669 100644 (file)
@@ -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))},