projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f819851
)
Allow ASTFile to be reset to null
author
Ben Langmuir
<blangmuir@apple.com>
Thu, 3 Apr 2014 00:14:16 +0000
(
00:14
+0000)
committer
Ben Langmuir
<blangmuir@apple.com>
Thu, 3 Apr 2014 00:14:16 +0000
(
00:14
+0000)
Which we do in removeModules().
llvm-svn: 205491
clang/include/clang/Basic/Module.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/Module.h
b/clang/include/clang/Basic/Module.h
index 3e5f05cfeda90ee41cc60396de6299edda7c1a8e..1f7f71d54be6ae4061181cd45fc36135ad98d5f3 100644
(file)
--- a/
clang/include/clang/Basic/Module.h
+++ b/
clang/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;
}