diff options
author | Philip Herron <herron.philip@googlemail.com> | 2024-12-12 14:56:14 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2024-12-13 11:57:33 +0000 |
commit | cc2445cd799fb5a88011ce9945afcdb9d2ca3219 (patch) | |
tree | 252510928584fe12de74e3c9cb79930d35dda12a | |
parent | 55a9d8d451354bf4ab8ff8367796faacad41a527 (diff) | |
download | gcc-cc2445cd799fb5a88011ce9945afcdb9d2ca3219.zip gcc-cc2445cd799fb5a88011ce9945afcdb9d2ca3219.tar.gz gcc-cc2445cd799fb5a88011ce9945afcdb9d2ca3219.tar.bz2 |
gccrs: fix bad not expression in rust
Fixes Rust-GCC#3229
gcc/rust/ChangeLog:
* rust-gcc.cc (operator_to_tree_code): ! expressions are BIT_NOT_EXPR
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
-rw-r--r-- | gcc/rust/rust-gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index 0590479..3f8986e 100644 --- a/gcc/rust/rust-gcc.cc +++ b/gcc/rust/rust-gcc.cc @@ -942,7 +942,7 @@ operator_to_tree_code (NegationOperator op) case NegationOperator::NEGATE: return NEGATE_EXPR; case NegationOperator::NOT: - return TRUTH_NOT_EXPR; + return BIT_NOT_EXPR; default: rust_unreachable (); } |