forked from OSchip/llvm-project
parent
a1e23d950b
commit
583089c6c6
|
@ -329,7 +329,7 @@ public:
|
|||
/// The pointer returned from this method is valid until the cleanup
|
||||
/// stack is modified.
|
||||
template <class T, class... As>
|
||||
T *pushCleanupWithExtra(CleanupKind Kind, size_t N, As A) {
|
||||
T *pushCleanupWithExtra(CleanupKind Kind, size_t N, As... A) {
|
||||
void *Buffer = pushCleanup(Kind, sizeof(T) + T::getExtraSize(N));
|
||||
return new (Buffer) T(N, A...);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue