@@ -1251,14 +1251,15 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1251
1251
case TypeKind::BuiltinVector: {
1252
1252
(void )MangledName; // FIXME emit the name somewhere.
1253
1253
auto *BuiltinVectorTy = BaseTy->castTo <BuiltinVectorType>();
1254
- DebugTypeInfo ElemDbgTy (DbgTy.getDeclContext (),
1255
- DbgTy.getGenericEnvironment (),
1256
- BuiltinVectorTy->getElementType (),
1257
- DbgTy.StorageType , DbgTy.size , DbgTy.align , true );
1258
- auto Subscripts = nullptr ;
1259
- return DBuilder.createVectorType (BuiltinVectorTy->getNumElements (),
1254
+ auto ElemTy = BuiltinVectorTy->getElementType ();
1255
+ auto ElemDbgTy = DebugTypeInfo::getFromTypeInfo (
1256
+ DbgTy.getDeclContext (), DbgTy.getGenericEnvironment (), ElemTy,
1257
+ IGM.getTypeInfoForUnlowered (ElemTy));
1258
+ unsigned Count = BuiltinVectorTy->getNumElements ();
1259
+ auto Subscript = DBuilder.getOrCreateSubrange (0 , Count ? Count : -1 );
1260
+ return DBuilder.createVectorType (SizeInBits,
1260
1261
AlignInBits, getOrCreateType (ElemDbgTy),
1261
- Subscripts );
1262
+ DBuilder. getOrCreateArray (Subscript) );
1262
1263
}
1263
1264
1264
1265
// Reference storage types.
0 commit comments