[all-commits] [llvm/llvm-project] 993cbe: Two fixes for DISubrangeType (#130345)
Tom Tromey via All-commits
all-commits at lists.llvm.org
Fri Mar 7 14:23:27 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 993cbead9e5c2385b93b7931b74c5d83dbadeb34
https://github.com/llvm/llvm-project/commit/993cbead9e5c2385b93b7931b74c5d83dbadeb34
Author: Tom Tromey <tromey at adacore.com>
Date: 2025-03-07 (Fri, 07 Mar 2025)
Changed paths:
M llvm/docs/LangRef.rst
M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
A llvm/test/DebugInfo/Generic/subrange_type.ll
Log Message:
-----------
Two fixes for DISubrangeType (#130345)
My previous patch to add DISubrangeType (#126772) had a couple of minor
errors. This patch corrects them.
1. When using a DISubrangeType as an array index type, the wrong tag was
written into the DIE.
2. I'd intended for subranges to use bit strides, not byte strides --
but neglected to actually implement this. Ada needs bit strides.
This patch adds a new test that checks both these things.
Finally, this patch adds some documentation for DISubrangeType.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list