Skip to content

Commit 1281f3d

Browse files
authored
Merge pull request #19298 from compnerd/trailing-msvc
2 parents a3264f6 + 12cc101 commit 1281f3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/IRGen/GenExistential.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ namespace {
150150
create(ArrayRef<const ProtocolDecl *> protocols, As &&...args)
151151
{
152152
void *buffer = operator new(
153-
ExistentialTypeInfoBase::template totalSizeToAlloc<
154-
const ProtocolDecl *>(protocols.size()));
153+
llvm::TrailingObjects<Derived, const ProtocolDecl *>::
154+
template totalSizeToAlloc<const ProtocolDecl *>(
155+
protocols.size()));
155156
return new (buffer) Derived(protocols, std::forward<As>(args)...);
156157
}
157158

0 commit comments

Comments
 (0)