aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-24 17:46:57 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-24 17:46:57 +0000
commit1452ff155bc533c223a5c31aeb75702d609d9f16 (patch)
tree5ab0dd2cadc9646e47d36b0d927d94954cf7ad7d /clang/lib/Frontend/CompilerInstance.cpp
parentfb9c6b760bc28f0de353a29bcc2b362ec2fc7c11 (diff)
downloadllvm-1452ff155bc533c223a5c31aeb75702d609d9f16.zip
llvm-1452ff155bc533c223a5c31aeb75702d609d9f16.tar.gz
llvm-1452ff155bc533c223a5c31aeb75702d609d9f16.tar.bz2
Teach the preprocessor to hold onto the preprocessor options.
llvm-svn: 166599
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 4b6a2fc..fca9f0b 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -247,7 +247,8 @@ void CompilerInstance::createPreprocessor() {
getDiagnostics(),
getLangOpts(),
&getTarget());
- PP = new Preprocessor(getDiagnostics(), getLangOpts(), &getTarget(),
+ PP = new Preprocessor(&getPreprocessorOpts(),
+ getDiagnostics(), getLangOpts(), &getTarget(),
getSourceManager(), *HeaderInfo, *this, PTHMgr,
/*OwnsHeaderSearch=*/true);