forked from OSchip/llvm-project
Do not reset TUScope when we are in incremental processing mode.
Patch by Axel Naumann! Reviewed by Richard Smith and me. llvm-svn: 284372
This commit is contained in:
parent
7d97e73589
commit
45bf62fc5e
|
@ -708,7 +708,8 @@ void Sema::ActOnEndOfTranslationUnit() {
|
|||
|
||||
if (TUKind == TU_Prefix) {
|
||||
// Translation unit prefixes don't need any of the checking below.
|
||||
TUScope = nullptr;
|
||||
if (!PP.isIncrementalProcessingEnabled())
|
||||
TUScope = nullptr;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -908,7 +909,8 @@ void Sema::ActOnEndOfTranslationUnit() {
|
|||
assert(ParsingInitForAutoVars.empty() &&
|
||||
"Didn't unmark var as having its initializer parsed");
|
||||
|
||||
TUScope = nullptr;
|
||||
if (!PP.isIncrementalProcessingEnabled())
|
||||
TUScope = nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue