diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-04-28 14:28:27 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-04-28 14:43:41 +0100 |
commit | ae085ac7b12809cadaf6bfdb18c34f1a177290c1 (patch) | |
tree | 664659586e7c79d2fd8e28d7e1c1458530a4be22 /gcc/rust/rust-backend.h | |
parent | 1ada076b9324982fd6f49aea6456e99613e394a8 (diff) | |
download | gcc-ae085ac7b12809cadaf6bfdb18c34f1a177290c1.zip gcc-ae085ac7b12809cadaf6bfdb18c34f1a177290c1.tar.gz gcc-ae085ac7b12809cadaf6bfdb18c34f1a177290c1.tar.bz2 |
Remove unused parameter caller from generating Call expressions
Within const context the fncontext maybe empty which in turn results in a
segv for generating const calls which will be evaluated by the const-expr
code anyway.
Addresses #1130
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r-- | gcc/rust/rust-backend.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index 17b7bae..6d631a0 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -285,8 +285,7 @@ public: // Create an expression for a call to FN with ARGS, taking place within // caller CALLER. - virtual tree call_expression (tree caller, tree fn, - const std::vector<tree> &args, + virtual tree call_expression (tree fn, const std::vector<tree> &args, tree static_chain, Location) = 0; |