summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.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/ASTReader.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/ASTReader.cpp')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index c6b21aadbdd..9f50e0541d5 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -6073,6 +6073,17 @@ QualType ASTReader::readTypeRecord(unsigned Index) {
return Context.getPipeType(ElementType, ReadOnly);
}
+ case TYPE_DEPENDENT_SIZED_EXT_VECTOR: {
+ unsigned Idx = 0;
+
+ // DependentSizedExtVectorType
+ QualType ElementType = readType(*Loc.F, Record, Idx);
+ Expr *SizeExpr = ReadExpr(*Loc.F);
+ SourceLocation AttrLoc = ReadSourceLocation(*Loc.F, Record, Idx);
+
+ return Context.getDependentSizedExtVectorType(ElementType, SizeExpr,
+ AttrLoc);
+ }
}
llvm_unreachable("Invalid TypeCode!");
}
OpenPOWER on IntegriCloud