aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-11-24 18:16:37 +0000
committerPhilip Herron <philip.herron@embecosm.com>2021-11-25 14:11:10 +0000
commit12b7154e90f676222262fe3d6935a950805a8566 (patch)
tree80b6d67075bf8d3adb1ceefdc039b30e6d0cb306 /gcc/rust/backend/rust-compile-expr.cc
parent717b6da459b26ace9a3c303cfa5e485ff8935709 (diff)
downloadgcc-12b7154e90f676222262fe3d6935a950805a8566.zip
gcc-12b7154e90f676222262fe3d6935a950805a8566.tar.gz
gcc-12b7154e90f676222262fe3d6935a950805a8566.tar.bz2
improve the error handling on operator overload cases
This operator overloading function was extracted from the callers within compound assignment etc, where we needed to be able to fall back to code within the same function. This improves the error handling to return early when there are no such lang-items or no available method instead of trying to continue. It flattens the conditional's previously required in the code path.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions