aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-08-11 15:50:12 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-11 15:50:12 +0100
commit9caea7bcf8026972544ef7aae26a8df1a8bf8db1 (patch)
tree25081caaac85a0bb6a196bc580d5e8522507ce08 /gcc/rust/rust-gcc.cc
parent70a0039b82b3419820359c8a1552470e48b458f6 (diff)
downloadgcc-9caea7bcf8026972544ef7aae26a8df1a8bf8db1.zip
gcc-9caea7bcf8026972544ef7aae26a8df1a8bf8db1.tar.gz
gcc-9caea7bcf8026972544ef7aae26a8df1a8bf8db1.tar.bz2
Dont return error_mark_node on bad CallExpr arguments
If we return error_mark_node on a bad expression argument we loss alot of useful debug info from the error node within the -fdump-tree-original which saves alot of debug printf.
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index c8eee0f..c172917 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -1778,8 +1778,6 @@ Gcc_backend::call_expression (tree fn, const std::vector<tree> &fn_args,
for (size_t i = 0; i < nargs; ++i)
{
args[i] = fn_args.at (i);
- if (args[i] == error_mark_node)
- return error_mark_node;
}
tree fndecl = fn;