BuildCXXNew takes an llvm::Optional and passing 0 means ArraySize is 0.
See llvm-mirror/clang@5b0a110410
This commit is contained in:
parent
08d52941b2
commit
9d168479f3
@ -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
|
||||
|
@ -327,7 +327,7 @@ namespace {
|
||||
/*TypeIdParens*/ SourceRange(),
|
||||
/*allocType*/ ETSI->getType(),
|
||||
/*allocTypeInfo*/ETSI,
|
||||
/*arraySize*/0,
|
||||
/*arraySize*/{},
|
||||
/*directInitRange*/E->getSourceRange(),
|
||||
/*initializer*/E
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user