From 3bf453ed12923ee9559cb0b2550f309cb65bb99f Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Thu, 3 Apr 2014 00:14:16 +0000 Subject: [PATCH] Allow ASTFile to be reset to null Which we do in removeModules(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205491 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Module.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h index 3e5f05cfed..1f7f71d54b 100644 --- a/include/clang/Basic/Module.h +++ b/include/clang/Basic/Module.h @@ -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; } -- 2.40.0