diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2021-01-08 22:05:03 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2021-01-08 22:05:03 +0800 |
commit | ee85db852a5a819e559ab00e7a382a34e925447a (patch) | |
tree | 2c577a2edf310fa213e18702b273b34497f6bc22 /gcc | |
parent | 238a31b33f79cddfaa40c5fd748495a5f2b34630 (diff) | |
download | gcc-ee85db852a5a819e559ab00e7a382a34e925447a.zip gcc-ee85db852a5a819e559ab00e7a382a34e925447a.tar.gz gcc-ee85db852a5a819e559ab00e7a382a34e925447a.tar.bz2 |
Added type hint to literal creation for cfg! macro
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/expand/rust-macro-expand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc index de24504..591d96c 100644 --- a/gcc/rust/expand/rust-macro-expand.cc +++ b/gcc/rust/expand/rust-macro-expand.cc @@ -3609,9 +3609,9 @@ MacroExpander::expand_cfg_macro (AST::MacroInvocData &invoc) bool result = invoc.get_meta_items ()[0]->check_cfg_predicate (session); if (result) - return AST::Literal ("true", AST::Literal::BOOL); + return AST::Literal ("true", AST::Literal::BOOL, CORETYPE_BOOL); else - return AST::Literal ("false", AST::Literal::BOOL); + return AST::Literal ("false", AST::Literal::BOOL, CORETYPE_BOOL); } AST::ASTFragment |