mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Allow ASTFile to be reset to null
Which we do in removeModules(). llvm-svn: 205491
This commit is contained in:
@@ -341,7 +341,8 @@ public:
|
||||
|
||||
/// \brief Set the serialized AST file for the top-level module of this module.
|
||||
void setASTFile(const FileEntry *File) {
|
||||
assert((getASTFile() == 0 || getASTFile() == File) && "file path changed");
|
||||
assert((File == 0 || getASTFile() == 0 || getASTFile() == File) &&
|
||||
"file path changed");
|
||||
getTopLevelModule()->ASTFile = File;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user