]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: late: Add bool builtin type
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 8 Nov 2023 23:39:46 +0000 (00:39 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:25 +0000 (16:52 +0200)
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))},