cling/patches/clang-Sema-enable_ActOnEndOfTU_cling.diff
Axel Naumann 14c6595959 Update cling's patches to be relative to its LastKnownGood.
Simplify some of the patches by reverting some of the changed llvm / clang files to the original ones.


git-svn-id: http://root.cern.ch/svn/root/trunk@49363 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-26 11:45:17 +00:00

23 lines
619 B
Diff

--- /home/axel/build/cling/src/./tools/clang/lib/Sema/Sema.cpp 2013-04-24 22:04:42.288514584 +0200
+++ ./tools/clang/lib/Sema/Sema.cpp 2013-04-24 19:40:14.329498012 +0200
@@ -599,7 +599,8 @@
if (TUKind == TU_Prefix) {
// Translation unit prefixes don't need any of the checking below.
- TUScope = 0;
+ if (!PP.isIncrementalProcessingEnabled())
+ TUScope = 0;
return;
}
@@ -790,7 +791,8 @@
assert(ParsingInitForAutoVars.empty() &&
"Didn't unmark var as having its initializer parsed");
- TUScope = 0;
+ if (!PP.isIncrementalProcessingEnabled())
+ TUScope = 0;
}