aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-08-02 11:18:51 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-12 15:07:01 +0200
commit12028d7b97a89e6f160b43c70cbf660583039e9b (patch)
treeedc17d81ff210f3b79b36b0d26a81816f04cda98 /gcc/tree-predcom.cc
parentb219cbeda72d23b7ad6ff12cd159784b7ef00667 (diff)
downloadgcc-12028d7b97a89e6f160b43c70cbf660583039e9b.zip
gcc-12028d7b97a89e6f160b43c70cbf660583039e9b.tar.gz
gcc-12028d7b97a89e6f160b43c70cbf660583039e9b.tar.bz2
borrowck: Avoid overloading issues on 32bit architectures
On architectures where `size_t` is `unsigned int`, such as 32bit x86, we encounter an issue with `PlaceId` and `FreeRegion` being aliases to the same types. This poses an issue for overloading functions for these two types, such as `push_subset` in that case. This commit renames one of these `push_subset` functions to avoid the issue, but this should be fixed with a newtype pattern for these two types. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-fact-collector.h (points): Rename `push_subset(PlaceId, PlaceId)` to `push_subset_place(PlaceId, PlaceId)`
Diffstat (limited to 'gcc/tree-predcom.cc')
0 files changed, 0 insertions, 0 deletions