[all-commits] [llvm/llvm-project] 95d7cc: [PCH] Support writing BuiltinBitCastExprs to PCHs
Hyd via All-commits
all-commits at lists.llvm.org
Thu Jun 11 10:37:25 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 95d7ccb70b9cbd53f1f137c0b2411852c42c122b
https://github.com/llvm/llvm-project/commit/95d7ccb70b9cbd53f1f137c0b2411852c42c122b
Author: hyd-dev <yd-huang at outlook.com>
Date: 2020-06-11 (Thu, 11 Jun 2020)
Changed paths:
M clang/include/clang/AST/ExprCXX.h
M clang/include/clang/Serialization/ASTBitCodes.h
M clang/lib/Serialization/ASTReaderStmt.cpp
M clang/lib/Serialization/ASTWriterStmt.cpp
A clang/test/PCH/builtin-bit-cast.cpp
Log Message:
-----------
[PCH] Support writing BuiltinBitCastExprs to PCHs
eee944e7f adds the new BuiltinBitCastExpr, but does not set the Code member of
ASTStmtWriter. This is not correct and causes an assertion failue in
ASTStmtWriter::emit() when building PCHs that contain __builtin_bit_cast. This
commit adds serialization::EXPR_BUILTIN_BIT_CAST and handles
ASTStmtWriter::Code properly.
Differential revision: https://reviews.llvm.org/D80360
More information about the All-commits
mailing list