diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-12 11:40:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 11:40:14 +0000 |
commit | fadc70475147768a68ccc9e0011bd3fe85d90096 (patch) | |
tree | fcf67c7d4144dd52c414c4005ba62b1876cfe92d /gcc | |
parent | 3399688a1bfe506e80109b765a63ea278d29383c (diff) | |
parent | 9caea7bcf8026972544ef7aae26a8df1a8bf8db1 (diff) | |
download | gcc-fadc70475147768a68ccc9e0011bd3fe85d90096.zip gcc-fadc70475147768a68ccc9e0011bd3fe85d90096.tar.gz gcc-fadc70475147768a68ccc9e0011bd3fe85d90096.tar.bz2 |
Merge #1466
1466: Dont return error_mark_node on bad CallExpr arguments r=philberty a=philberty
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.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index 66fd8bc..ffb67f3 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; |