[cfe-commits] r90126 - /cfe/trunk/lib/Driver/CC1Options.cpp
Daniel Dunbar
daniel at zuster.org
Mon Nov 30 00:41:42 PST 2009
Author: ddunbar
Date: Mon Nov 30 02:41:42 2009
New Revision: 90126
URL: http://llvm.org/viewvc/llvm-project?rev=90126&view=rev
Log:
clang -cc1: Fix initialization of PreprocessorOptions::TokenCache.
Modified:
cfe/trunk/lib/Driver/CC1Options.cpp
Modified: cfe/trunk/lib/Driver/CC1Options.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CC1Options.cpp?rev=90126&r1=90125&r2=90126&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/CC1Options.cpp (original)
+++ cfe/trunk/lib/Driver/CC1Options.cpp Mon Nov 30 02:41:42 2009
@@ -609,7 +609,10 @@
using namespace cc1options;
Opts.ImplicitPCHInclude = getLastArgValue(Args, OPT_include_pch);
Opts.ImplicitPTHInclude = getLastArgValue(Args, OPT_include_pth);
- Opts.TokenCache = getLastArgValue(Args, OPT_token_cache);
+ if (const Arg *A = Args.getLastArg(OPT_token_cache))
+ Opts.TokenCache = A->getValue(Args);
+ else
+ Opts.TokenCache = Opts.ImplicitPTHInclude;
Opts.UsePredefines = !Args.hasArg(OPT_undef);
// Add macros from the command line.
More information about the cfe-commits
mailing list