We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3a075 commit cae23fdCopy full SHA for cae23fd
lib/IRGen/GenMeta.cpp
@@ -6940,11 +6940,13 @@ namespace {
6940
}
6941
6942
void addValueWitnessTable() {
6943
+ llvm::Constant* vwtPointer = nullptr;
6944
if (auto cd = Target->getClangDecl())
6945
if (auto rd = dyn_cast<clang::RecordDecl>(cd))
6946
if (rd->isAnonymousStructOrUnion())
- return;
6947
- auto vwtPointer = emitValueWitnessTable(/*relative*/ false).getValue();
+ vwtPointer = llvm::Constant::getNullValue(IGM.WitnessTablePtrTy);
6948
+ if (!vwtPointer)
6949
+ vwtPointer = emitValueWitnessTable(/*relative*/ false).getValue();
6950
B.addSignedPointer(vwtPointer,
6951
IGM.getOptions().PointerAuth.ValueWitnessTable,
6952
PointerAuthEntity());
0 commit comments