forked from OSchip/llvm-project
parent
2edf3a4896
commit
fd8d4e1383
|
@ -424,14 +424,13 @@ Sema::BuildCXXNew(SourceLocation StartLoc, bool UseGlobal,
|
|||
Expr **ConsArgs = (Expr**)ConstructorArgs.get();
|
||||
const RecordType *RT;
|
||||
unsigned NumConsArgs = ConstructorArgs.size();
|
||||
|
||||
ASTOwningVector<&ActionBase::DeleteExpr> ConvertedConstructorArgs(*this);
|
||||
|
||||
if (AllocType->isDependentType() ||
|
||||
Expr::hasAnyTypeDependentArguments(ConsArgs, NumConsArgs)) {
|
||||
// Skip all the checks.
|
||||
} else if ((RT = AllocType->getAs<RecordType>()) &&
|
||||
!AllocType->isAggregateType()) {
|
||||
ASTOwningVector<&ActionBase::DeleteExpr> ConvertedConstructorArgs(*this);
|
||||
|
||||
Constructor = PerformInitializationByConstructor(
|
||||
AllocType, move(ConstructorArgs),
|
||||
TypeLoc,
|
||||
|
|
Loading…
Reference in New Issue