aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-11-20 01:28:04 +0100
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-11-20 13:36:42 +0000
commite4b68a6cd5349ad153ac30cc2ddf668498255e2e (patch)
tree45358ac0b68172f5a698c606c4b7daa15222acde /gcc/rust/hir
parent690eb22f6cac7be9de759dd336b042304b27fe72 (diff)
downloadgcc-e4b68a6cd5349ad153ac30cc2ddf668498255e2e.zip
gcc-e4b68a6cd5349ad153ac30cc2ddf668498255e2e.tar.gz
gcc-e4b68a6cd5349ad153ac30cc2ddf668498255e2e.tar.bz2
Fix FnParam pattern location ternary logic
Condition was inverted, we should retrieve the locus only if we have a pattern. gcc/rust/ChangeLog: * typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): Do not get a reference if the pattern does not exist. (TypeCheckMethodCallExpr::check): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions