Fix uninitialized variable warnings. NFCI.

llvm-svn: 374876
This commit is contained in:
Simon Pilgrim 2019-10-15 10:23:05 +00:00
parent 095531ea94
commit 4706f3be88
1 changed files with 2 additions and 2 deletions

View File

@ -2579,10 +2579,10 @@ ExpectedDecl ASTNodeImporter::VisitRecordDecl(RecordDecl *D) {
}
// Import the major distinguishing characteristics of this record.
DeclContext *DC, *LexicalDC;
DeclContext *DC = nullptr, *LexicalDC = nullptr;
DeclarationName Name;
SourceLocation Loc;
NamedDecl *ToD;
NamedDecl *ToD = nullptr;
if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc))
return std::move(Err);
if (ToD)