BuildCXXNew takes an llvm::Optional and passing 0 means ArraySize is 0.

See llvm-mirror/clang@5b0a110410
This commit is contained in:
Vassil Vassilev 2020-04-11 23:03:34 +03:00 committed by jenkins
parent 08d52941b2
commit 9d168479f3
2 changed files with 2 additions and 2 deletions

View File

@ -790,7 +790,7 @@ namespace cling {
m_NoRange,
ExprInfoTy,
TrivialTSI,
/*ArraySize=*/0,
/*ArraySize=*/{},
//BuildCXXNew depends on the SLoc to be
//valid!
// TODO: Propose a patch in clang

View File

@ -327,7 +327,7 @@ namespace {
/*TypeIdParens*/ SourceRange(),
/*allocType*/ ETSI->getType(),
/*allocTypeInfo*/ETSI,
/*arraySize*/0,
/*arraySize*/{},
/*directInitRange*/E->getSourceRange(),
/*initializer*/E
);