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.
2 parents a3264f6 + 12cc101 commit 1281f3dCopy full SHA for 1281f3d
lib/IRGen/GenExistential.cpp
@@ -150,8 +150,9 @@ namespace {
150
create(ArrayRef<const ProtocolDecl *> protocols, As &&...args)
151
{
152
void *buffer = operator new(
153
- ExistentialTypeInfoBase::template totalSizeToAlloc<
154
- const ProtocolDecl *>(protocols.size()));
+ llvm::TrailingObjects<Derived, const ProtocolDecl *>::
+ template totalSizeToAlloc<const ProtocolDecl *>(
155
+ protocols.size()));
156
return new (buffer) Derived(protocols, std::forward<As>(args)...);
157
}
158
0 commit comments