summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/ParseAST.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-20 20:35:58 +0000
committerChris Lattner <sabre@nondot.org>2010-04-20 20:35:58 +0000
commitfb24a3a4ec3d625981bb822e021dc89a0cf3fde1 (patch)
tree20d53042ca9baae6abb062b22670a5305f79fc27 /clang/lib/Sema/ParseAST.cpp
parent877aaa9706e8bed893cebfc292a2ca305ec30663 (diff)
downloadbcm5719-llvm-fb24a3a4ec3d625981bb822e021dc89a0cf3fde1.tar.gz
bcm5719-llvm-fb24a3a4ec3d625981bb822e021dc89a0cf3fde1.zip
push some source location information down through the compiler,
into ContentCache::getBuffer. This allows it to produce diagnostics on the broken #include line instead of without a location. llvm-svn: 101939
Diffstat (limited to 'clang/lib/Sema/ParseAST.cpp')
-rw-r--r--clang/lib/Sema/ParseAST.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/ParseAST.cpp b/clang/lib/Sema/ParseAST.cpp
index f620927a8dd..bb0bd9e1cb5 100644
--- a/clang/lib/Sema/ParseAST.cpp
+++ b/clang/lib/Sema/ParseAST.cpp
@@ -64,8 +64,7 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer,
Sema S(PP, Ctx, *Consumer, CompleteTranslationUnit, CompletionConsumer);
Parser P(PP, S);
- if (PP.EnterMainSourceFile())
- return;
+ PP.EnterMainSourceFile();
// Initialize the parser.
P.Initialize();
OpenPOWER on IntegriCloud