aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-12-12 14:56:14 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:55:43 +0100
commit7bf460b338845d1b9a581cca70a3191f76769816 (patch)
tree9b9914d3a0ac4be3fa9a2df4bb119f547a3f77ad /gcc
parenteacbbac93a49e144859d2c6510ed231e428d3ba4 (diff)
downloadgcc-7bf460b338845d1b9a581cca70a3191f76769816.zip
gcc-7bf460b338845d1b9a581cca70a3191f76769816.tar.gz
gcc-7bf460b338845d1b9a581cca70a3191f76769816.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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-gcc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 7da5e2c..37d51e5 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 ();
}