Simplify code (NFC)

llvm-svn: 321750
This commit is contained in:
Adrian Prantl 2018-01-03 18:31:04 +00:00
parent 287c801540
commit 1b88acedd0
1 changed files with 2 additions and 3 deletions

View File

@ -71,9 +71,8 @@ class PCHContainerGenerator : public ASTConsumer {
}
bool VisitImportDecl(ImportDecl *D) {
auto *Import = cast<ImportDecl>(D);
if (!Import->getImportedOwningModule())
DI.EmitImportDecl(*Import);
if (!D->getImportedOwningModule())
DI.EmitImportDecl(*D);
return true;
}