gccrs: backend: correctly formulate the exit condition ...
authorliushuyu <liushuyu011@gmail.com>
Mon, 5 Sep 2022 23:56:03 +0000 (17:56 -0600)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 31 Jan 2023 13:16:51 +0000 (14:16 +0100)
commite6a3886a833a0c499ab20a828ffae79076d47a4d
tree71a89ed815c718b367c7488c82b346d440ca3894
parentb0ff1647cbe682b681ab9abaed3315b6b03c20fc
gccrs: backend: correctly formulate the exit condition ...

... previously the exit condition was treated the same as the loop
condition (which is the inverse condition of the exit condition). Now
this is corrected.

gcc/rust/ChangeLog:

* backend/rust-compile-expr.cc (CompileExpr::visit): Properly formulate
exit condition when compiling while loops.

Signed-off-by: Zixing Liu <liushuyu011@gmail.com>
gcc/rust/backend/rust-compile-expr.cc