forked from OSchip/llvm-project
Patch to prevent crash when default argument expression
is null due to its previous bad declaration, etc. rdar://19871240 llvm-svn: 230649
This commit is contained in:
parent
b791226136
commit
947efbc138
|
@ -6774,8 +6774,11 @@ void AnalyzeImplicitConversions(Sema &S, Expr *OrigE, SourceLocation CC) {
|
|||
E = POE->getResultExpr();
|
||||
}
|
||||
|
||||
if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(E))
|
||||
return AnalyzeImplicitConversions(S, OVE->getSourceExpr(), CC);
|
||||
if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(E)) {
|
||||
if (OVE->getSourceExpr())
|
||||
AnalyzeImplicitConversions(S, OVE->getSourceExpr(), CC);
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip past explicit casts.
|
||||
if (isa<ExplicitCastExpr>(E)) {
|
||||
|
|
Loading…
Reference in New Issue