[NFC][StackSafety] Avoid assert in getBaseObjec

This commit is contained in:
Vitaly Buka 2020-08-07 17:28:05 -07:00
parent b529c5270c
commit a6feeb1c6b
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ FunctionSummary *resolveCallee(GlobalValueSummary *S) {
if (FunctionSummary *FS = dyn_cast<FunctionSummary>(S)) if (FunctionSummary *FS = dyn_cast<FunctionSummary>(S))
return FS; return FS;
AliasSummary *AS = dyn_cast<AliasSummary>(S); AliasSummary *AS = dyn_cast<AliasSummary>(S);
if (!AS) if (!AS || !AS->hasAliasee())
return nullptr; return nullptr;
S = AS->getBaseObject(); S = AS->getBaseObject();
if (S == AS) if (S == AS)