summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2013-11-17 09:14:46 +0000
committerHao Liu <Hao.Liu@arm.com>2013-11-17 09:14:46 +0000
commit90ee2f1fd7d52433ffee6a0089c19588aea308d7 (patch)
tree4088f753b6452abf3cd9ec52d38682327bdd1a9b /clang/lib
parent3cde3d245a86653bd2a7c9719d7edd2d74a4f66b (diff)
downloadbcm5719-llvm-90ee2f1fd7d52433ffee6a0089c19588aea308d7.tar.gz
bcm5719-llvm-90ee2f1fd7d52433ffee6a0089c19588aea308d7.zip
Fix the problem that the arm_neon.h can't be used in a cpp file. Also fix a minor bug with poly64 name mangling.
llvm-svn: 194952
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ItaniumMangle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
index 3d0e7253d76..e94b4cf9073 100644
--- a/clang/lib/AST/ItaniumMangle.cpp
+++ b/clang/lib/AST/ItaniumMangle.cpp
@@ -2235,9 +2235,6 @@ void CXXNameMangler::mangleAArch64NeonVectorType(const VectorType *T) {
assert((BitSize == 64 || BitSize == 128) &&
"Neon vector type not 64 or 128 bits");
- assert(getASTContext().getTypeSize(EltType) != BitSize &&
- "Vector of 1 element not permitted");
-
StringRef EltName;
if (T->getVectorKind() == VectorType::NeonPolyVector) {
switch (cast<BuiltinType>(EltType)->getKind()) {
@@ -2247,6 +2244,9 @@ void CXXNameMangler::mangleAArch64NeonVectorType(const VectorType *T) {
case BuiltinType::UShort:
EltName = "Poly16";
break;
+ case BuiltinType::ULongLong:
+ EltName = "Poly64";
+ break;
default:
llvm_unreachable("unexpected Neon polynomial vector element type");
}
OpenPOWER on IntegriCloud