aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-08-31 11:32:18 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:34 +0100
commit215b6acecb609d2a424e36116f1be8cf30d53438 (patch)
treed26799377c662d71b26cf379133da85819553f35 /gcc/rust/rust-gcc.cc
parentad1c244dd607fd7607ef95eecc2718e98578a70c (diff)
downloadgcc-215b6acecb609d2a424e36116f1be8cf30d53438.zip
gcc-215b6acecb609d2a424e36116f1be8cf30d53438.tar.gz
gcc-215b6acecb609d2a424e36116f1be8cf30d53438.tar.bz2
gccrs: Fix overflow intrinsic use before init
The overflow intrinsic returns a tuple of (value, boolean) where it value is the operator result and boolean if it overflowed or not. The intrinsic here did not initilize the resulting tuple and therefore was creating a use before init error resulting in garbage results Addresses #1895 gcc/rust/ChangeLog: * backend/rust-compile-intrinsic.cc (op_with_overflow_inner): fix use before init Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions