================
@@ -902,7 +902,14 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType 
*BT) {
       // Debuggers can't extract 1bit from a vector, so will display a
       // bitpattern for predicates instead.
       unsigned NumElems = Info.EC.getKnownMinValue() * Info.NumVectors;
-      if (Info.ElementType == CGM.getContext().BoolTy) {
+      llvm::Metadata *BitStride = nullptr;
+      if (BT->getKind() == BuiltinType::SveBool) {
+        Info.ElementType = CGM.getContext().UnsignedCharTy;
+        BitStride = llvm::ConstantAsMetadata::get(llvm::ConstantInt::getSigned(
+            llvm::Type::getInt64Ty(CGM.getLLVMContext()), 1));
+      }
+
+      if (BT->getKind() == BuiltinType::SveCount) {
----------------
sdesmalen-arm wrote:

nit: this can be `else if`

https://github.com/llvm/llvm-project/pull/161409
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to