projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b529c52
)
[NFC][StackSafety] Avoid assert in getBaseObjec
author
Vitaly Buka
<vitalybuka@google.com>
Sat, 8 Aug 2020 00:28:05 +0000
(17:28 -0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Mon, 10 Aug 2020 06:20:17 +0000
(23:20 -0700)
llvm/lib/Analysis/StackSafetyAnalysis.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index
49914e6
..
2629a63
100644
(file)
--- a/
llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/
llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@
-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)