Skip to content

Commit cc2445c

Browse files
committed
gccrs: fix bad not expression in rust
Fixes #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>
1 parent 55a9d8d commit cc2445c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/rust/rust-gcc.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ operator_to_tree_code (NegationOperator op)
942942
case NegationOperator::NEGATE:
943943
return NEGATE_EXPR;
944944
case NegationOperator::NOT:
945-
return TRUTH_NOT_EXPR;
945+
return BIT_NOT_EXPR;
946946
default:
947947
rust_unreachable ();
948948
}

0 commit comments

Comments
 (0)