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
This commit is contained in:
parent
3cde3d245a
commit
90ee2f1fd7
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue