[clang][CodeGen] The `eh_typeid_for` intrinsic needs special care too (#65699)
commitde018f5ca4b2598f6bbf7a27a1fb51935792c276
authorAlex Voicu <alexandru.voicu@amd.com>
Wed, 20 Sep 2023 16:12:19 +0000 (20 17:12 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 16:12:19 +0000 (20 17:12 +0100)
treeb6ec77ad923c0527198a318af61b649f4b680ea2
parent0de0b6dded4752040350feb9c81415d82478d065
[clang][CodeGen] The `eh_typeid_for` intrinsic needs special care too (#65699)

This change is symmetric with the one reviewed in
<https://reviews.llvm.org/D157452> and handles the exception handling
specific intrinsic, which slipped through the cracks, in the same way,
by inserting an address-space cast iff RTTI is in a non-default AS.
clang/lib/CodeGen/CGException.cpp
clang/test/CodeGenCXX/try-catch-with-address-space.cpp [new file with mode: 0644]