summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2011-03-31 19:29:24 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2011-03-31 19:29:24 +0000
commit7ac974122f29d620bdbea458f7ec570a58b49964 (patch)
treef786470b6972686a517142ff638b87334cbc385c /clang/lib/Sema
parent604caf4008b3d90dbadda2a787dcdf2ff8e00201 (diff)
downloadbcm5719-llvm-7ac974122f29d620bdbea458f7ec570a58b49964.tar.gz
bcm5719-llvm-7ac974122f29d620bdbea458f7ec570a58b49964.zip
Make ChainedIncludesSource an ExternalSemaSource, otherwise initialization of the ASTReader is incomplete, leading to errors like not realizing std::type_info is already defined.
llvm-svn: 128664
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 36079c2ce7f..8c81acc9d15 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -343,7 +343,7 @@ ExprResult
Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
bool isType, void *TyOrExpr, SourceLocation RParenLoc) {
// Find the std::type_info type.
- if (!StdNamespace)
+ if (!getStdNamespace())
return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
if (!CXXTypeInfoDecl) {
OpenPOWER on IntegriCloud