diff options
author | Nuno Lopes <nuno.lopes@tecnico.ulisboa.pt> | 2023-09-09 07:50:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 07:50:35 +0100 |
commit | 8a2d68f6be5058f88588c31928ff40d8eb16c20a (patch) | |
tree | 9568a0c1d57550add2d7a7c106b153aff48395da /clang/lib/Lex/ModuleMap.cpp | |
parent | 0a6f658f977a1201535a120d99fd32755f48e0ee (diff) | |
download | llvm-8a2d68f6be5058f88588c31928ff40d8eb16c20a.zip llvm-8a2d68f6be5058f88588c31928ff40d8eb16c20a.tar.gz llvm-8a2d68f6be5058f88588c31928ff40d8eb16c20a.tar.bz2 |
[clang][CodeGen] Switch declaration of vtable information to be [0 x ptr] (#65596)
Continuing the discussion in
https://discourse.llvm.org/t/codegen-layout-of-si-class-type-info-doesnt-match-the-actual-size/73274
Before we had this code:
@_ZTVN10__cxxabiv117__class_type_infoE = external global ptr
now we'll produce:
@_ZTVN10__cxxabiv117__class_type_infoE = external global [0 x ptr]
This is because we may not know the exact size of this data, and clang
issues gep inbounds with idx=2. Before, that gep would always result in
poison.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions