aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-01-08 22:05:03 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-01-08 22:05:03 +0800
commitee85db852a5a819e559ab00e7a382a34e925447a (patch)
tree2c577a2edf310fa213e18702b273b34497f6bc22 /gcc
parent238a31b33f79cddfaa40c5fd748495a5f2b34630 (diff)
downloadgcc-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.cc4
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