diff options
author | Yizhe <yizhe@pku.edu.cn> | 2021-02-26 08:12:37 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-03-01 10:42:27 +0000 |
commit | 5625e07187567025cdc5aeac576dd9fca7579af1 (patch) | |
tree | ea813222b7353881c49dd1b3d2a53c4eb03a9287 /gcc/rust/backend/rust-compile-expr.h | |
parent | f0b7bd41383ace6e68c3527ca02cacad1583c63b (diff) | |
download | gcc-5625e07187567025cdc5aeac576dd9fca7579af1.zip gcc-5625e07187567025cdc5aeac576dd9fca7579af1.tar.gz gcc-5625e07187567025cdc5aeac576dd9fca7579af1.tar.bz2 |
Remove the last trace of the Operator enum #2
Missed a few lines in the last attempt. Whoops.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 1c20979..86d4062 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -332,18 +332,6 @@ public: void visit (HIR::NegationExpr &expr) { - Operator op (OPERATOR_INVALID); - switch (expr.get_negation_type ()) - { - case HIR::NegationExpr::NegationType::NEGATE: - op = OPERATOR_MINUS; - break; - - case HIR::NegationExpr::NegationType::NOT: - op = OPERATOR_NOT; - break; - } - auto op = expr.get_expr_type (); auto negated_expr = CompileExpr::Compile (expr.get_expr (), ctx); auto location = expr.get_locus (); |