[Clang][CodeGen] Follow-up for `vtable`, `typeinfo` et al. are globals
authorAlex Voicu <alexandru.voicu@amd.com>
Wed, 19 Jul 2023 22:57:12 +0000 (23:57 +0100)
committerAlex Voicu <alexandru.voicu@amd.com>
Wed, 19 Jul 2023 22:57:12 +0000 (23:57 +0100)
commitf385abf131e01b12b14ac3bc7214eb119b40523e
treead55a13cb2d9109aac63b51e087fe59357f14629
parentbe9f55f4fff47badcdca17be5bcc0a4a15894739
[Clang][CodeGen] Follow-up for `vtable`, `typeinfo` et al. are globals

https://reviews.llvm.org/rG8acdcf4016876d122733991561be706b64026e73 didn't include handling for the fact that `throw`'s implementation takes a pointer to a type's `typeinfo` struct, which implies that its signature needs to change as well. This corrects that and adds a test.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D155759
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/throw-expression-typeinfo-in-address-space.cpp [new file with mode: 0644]