diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-13 20:56:31 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-13 20:56:31 +0000 |
commit | 8eb06f17c4c476b1f80d9ffa541106171b404bae (patch) | |
tree | 22cd5ce7517184297e3151aed93a77fe379af31a /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | 1394a4b7157d88d42e40edd9ebea42646bec0b4e (diff) | |
download | bcm5719-llvm-8eb06f17c4c476b1f80d9ffa541106171b404bae.tar.gz bcm5719-llvm-8eb06f17c4c476b1f80d9ffa541106171b404bae.zip |
Eagerly evaluate type traits in Sema instead of lazily in AST. They actually need Sema access to be correct, fixes coming up.
llvm-svn: 113782
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index 3701e0c146e..7a5b9497a82 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -1280,6 +1280,7 @@ void ASTStmtWriter::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *E) { void ASTStmtWriter::VisitUnaryTypeTraitExpr(UnaryTypeTraitExpr *E) { VisitExpr(E); Record.push_back(E->getTrait()); + Record.push_back(E->getValue()); Writer.AddSourceRange(E->getSourceRange(), Record); Writer.AddTypeSourceInfo(E->getQueriedTypeSourceInfo(), Record); Code = serialization::EXPR_CXX_UNARY_TYPE_TRAIT; |