[all-commits] [llvm/llvm-project] 724000: [Clang][CodeGen] `__dynamic_cast` should care abou...
Alex Voicu via All-commits
all-commits at lists.llvm.org
Thu Aug 3 15:26:23 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7240008c0afa3e2d12f3f51cfe0235668feb6ef3
https://github.com/llvm/llvm-project/commit/7240008c0afa3e2d12f3f51cfe0235668feb6ef3
Author: Alex Voicu <alexandru.voicu at amd.com>
Date: 2023-08-03 (Thu, 03 Aug 2023)
Changed paths:
M clang/lib/CodeGen/ItaniumCXXABI.cpp
A clang/test/CodeGenCXX/dynamic-cast-address-space.cpp
Log Message:
-----------
[Clang][CodeGen] `__dynamic_cast` should care about `type_info`'s address space
`__dynamic_cast` relies on `type_info`, which its signature assumed to be in the generic / default address space. This patch corrects the oversight (we know that `type_info` resides in the GlobalVar address space) and adds an associated test.
Reviewed By: yaxunl
Differential Revision: https://reviews.llvm.org/D155870
More information about the All-commits
mailing list