aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-item.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-11 10:02:46 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-11 10:02:46 +0000
commitdf2dbbc0343afcca95d515d8843612b0334bc17b (patch)
treee762da6a57371929a844d3b526cca7d2ed84f345 /gcc/rust/backend/rust-compile-item.h
parentb2aa172ff69591452e3566c105f2a4cd8450eab5 (diff)
downloadgcc-df2dbbc0343afcca95d515d8843612b0334bc17b.zip
gcc-df2dbbc0343afcca95d515d8843612b0334bc17b.tar.gz
gcc-df2dbbc0343afcca95d515d8843612b0334bc17b.tar.bz2
Remove error_mark_node wrappers from backend proxy class.
Diffstat (limited to 'gcc/rust/backend/rust-compile-item.h')
-rw-r--r--gcc/rust/backend/rust-compile-item.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-item.h b/gcc/rust/backend/rust-compile-item.h
index 71f259f..897fe85 100644
--- a/gcc/rust/backend/rust-compile-item.h
+++ b/gcc/rust/backend/rust-compile-item.h
@@ -38,8 +38,7 @@ public:
CompileItem compiler (ctx, concrete, ref_locus);
item->accept_vis (compiler);
- if (is_query_mode
- && ctx->get_backend ()->is_error_expression (compiler.reference))
+ if (is_query_mode && compiler.reference == error_mark_node)
rust_internal_error_at (ref_locus, "failed to compile item: %s",
item->as_string ().c_str ());