1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[NFC][StackSafety] Avoid assert in getBaseObjec

This commit is contained in:
Vitaly Buka 2020-08-07 17:28:05 -07:00
parent f4233be412
commit 6795706f92

View File

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