summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-03-22 10:04:48 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-03-22 10:04:48 +0000
commit00aee43734e040de1d8d98722abfc78db7dc5c82 (patch)
tree2ee851b7465fb0139b0ae94111c6fb3b7d1ff521 /clang/lib/Serialization/ASTWriter.cpp
parent28264edea3ac84260aa95bed6f2f4a25c41a066f (diff)
downloadbcm5719-llvm-00aee43734e040de1d8d98722abfc78db7dc5c82.tar.gz
bcm5719-llvm-00aee43734e040de1d8d98722abfc78db7dc5c82.zip
[Serialization] Serialize DependentSizedExtVectorType
rdar://30659700 Differential Revision: https://reviews.llvm.org/D31134 llvm-svn: 298493
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 524bc2dae73..e4474a84179 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -426,8 +426,10 @@ ASTTypeWriter::VisitDependentSizedArrayType(const DependentSizedArrayType *T) {
void
ASTTypeWriter::VisitDependentSizedExtVectorType(
const DependentSizedExtVectorType *T) {
- // FIXME: Serialize this type (C++ only)
- llvm_unreachable("Cannot serialize dependent sized extended vector types");
+ Record.AddTypeRef(T->getElementType());
+ Record.AddStmt(T->getSizeExpr());
+ Record.AddSourceLocation(T->getAttributeLoc());
+ Code = TYPE_DEPENDENT_SIZED_EXT_VECTOR;
}
void
OpenPOWER on IntegriCloud