diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-20 18:11:52 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-02 15:11:51 -0500 |
commit | 9f151df17800e1668c32e5314a290ae94c8f2dd3 (patch) | |
tree | b70b98d362d280fd92d1477efe66b5b8af11c75b /clang/lib/Basic/Module.cpp | |
parent | c29513f7e023f125c6d221db179dc40b79e5c074 (diff) | |
download | llvm-9f151df17800e1668c32e5314a290ae94c8f2dd3.zip llvm-9f151df17800e1668c32e5314a290ae94c8f2dd3.tar.gz llvm-9f151df17800e1668c32e5314a290ae94c8f2dd3.tar.bz2 |
Change Module::ASTFile and ModuleFile::File => Optional<FileEntryRef>, NFC
Change `Module::ASTFile` and `ModuleFile::File` to use
`Optional<FileEntryRef>` instead of `const FileEntry *`. One of many
steps toward removing `FileEntry::getName`.
Differential Revision: https://reviews.llvm.org/D89836
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r-- | clang/lib/Basic/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp index b25248d..68c1d0f 100644 --- a/clang/lib/Basic/Module.cpp +++ b/clang/lib/Basic/Module.cpp @@ -671,7 +671,7 @@ ASTSourceDescriptor::ASTSourceDescriptor(Module &M) : Signature(M.Signature), ClangModule(&M) { if (M.Directory) Path = M.Directory->getName(); - if (auto *File = M.getASTFile()) + if (auto File = M.getASTFile()) ASTFile = File->getName(); } |