[cfe-commits] r67354 - /cfe/trunk/Driver/clang.cpp
Ted Kremenek
kremenek at apple.com
Thu Mar 19 17:40:03 PDT 2009
Author: kremenek
Date: Thu Mar 19 19:40:03 2009
New Revision: 67354
URL: http://llvm.org/viewvc/llvm-project?rev=67354&view=rev
Log:
Preserve ordering between -include and -include-pth.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=67354&r1=67353&r2=67354&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Thu Mar 19 19:40:03 2009
@@ -934,7 +934,8 @@
// Add implicit #includes from -include and -include-pth.
bool handledPTH = ImplicitIncludePTH.empty();
for (unsigned i = 0, e = ImplicitIncludes.size(); i != e; ++i) {
- if (!handledPTH) {
+ if (!handledPTH &&
+ ImplicitIncludePTH.getPosition() < ImplicitIncludes.getPosition(i)) {
AddImplicitIncludePTH(PredefineBuffer, PP);
handledPTH = true;
}
More information about the cfe-commits
mailing list