diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-24 10:31:53 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-24 11:05:27 +0100 |
commit | 14b0472fa4cfb6a307968f7c6f4eed296cde7146 (patch) | |
tree | 6be2ff495b9c50c4c0c3fbe76398826473011edc /gcc/rust | |
parent | c1cc931f97fc2fe593bddc5090fd2645b2d5ec61 (diff) | |
download | gcc-14b0472fa4cfb6a307968f7c6f4eed296cde7146.zip gcc-14b0472fa4cfb6a307968f7c6f4eed296cde7146.tar.gz gcc-14b0472fa4cfb6a307968f7c6f4eed296cde7146.tar.bz2 |
hir-path-probe: Fix miscompilation on gcc-4.8
Diffstat (limited to 'gcc/rust')
-rw-r--r-- | gcc/rust/typecheck/rust-hir-path-probe.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/rust/typecheck/rust-hir-path-probe.h b/gcc/rust/typecheck/rust-hir-path-probe.h index 50d660c..3c1858c 100644 --- a/gcc/rust/typecheck/rust-hir-path-probe.h +++ b/gcc/rust/typecheck/rust-hir-path-probe.h @@ -364,10 +364,9 @@ protected: PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref, trait_item_ref, impl}; - PathProbeCandidate candidate{candidate_type, - trait_item_tyty, - trait_ref->get_locus (), - {trait_item_candidate}}; + + PathProbeCandidate candidate{candidate_type, trait_item_tyty, + trait_ref->get_locus (), trait_item_candidate}; candidates.push_back (std::move (candidate)); } @@ -409,10 +408,9 @@ protected: PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref, trait_item_ref, nullptr}; - PathProbeCandidate candidate{candidate_type, - trait_item_tyty, + PathProbeCandidate candidate{candidate_type, trait_item_tyty, trait_item_ref->get_locus (), - {trait_item_candidate}}; + trait_item_candidate}; candidates.push_back (std::move (candidate)); } |