forked from OSchip/llvm-project
parent
4a27c79a95
commit
5699969912
|
@ -3042,7 +3042,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
|
||||||
if (Info.Ctx.getAsIncompleteArrayType(BaseType)) {
|
if (Info.Ctx.getAsIncompleteArrayType(BaseType)) {
|
||||||
QualType MostRecentType =
|
QualType MostRecentType =
|
||||||
cast<ValueDecl const>(D->getMostRecentDecl())->getType();
|
cast<ValueDecl const>(D->getMostRecentDecl())->getType();
|
||||||
if (auto CAT = Info.Ctx.getAsConstantArrayType(MostRecentType))
|
if (Info.Ctx.getAsConstantArrayType(MostRecentType))
|
||||||
BaseType = MostRecentType;
|
BaseType = MostRecentType;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue