diff options
| author | Tom Tromey <tromey@adacore.com> | 2026-02-12 08:07:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-12 08:07:42 -0700 |
| commit | 97bd838eead62836cd07dcf0c68dba636cbe7bea (patch) | |
| tree | 416eec5b38a93ee2bac3ea41c6031abe4ec8a8ac /llvm/lib/IR | |
| parent | 1c6278198dad571687c60feae5526cb8825f21cb (diff) | |
| download | llvm-97bd838eead62836cd07dcf0c68dba636cbe7bea.tar.gz llvm-97bd838eead62836cd07dcf0c68dba636cbe7bea.tar.bz2 llvm-97bd838eead62836cd07dcf0c68dba636cbe7bea.zip | |
[llvm][DebugInfo] Allow anonymous basic types (#180016)
For the Ada compiler, it is sometimes useful to emit an anonymous basic
type. Currently, this is prohibited by DIBuilder, but there doesn't seem
to be a deep reason for this prohibition -- DWARF allows anonymous base
types, and the LLVM DWARF writer also accounts for this possibility.
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 38cf3f552b83..54e80806245e 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -276,7 +276,6 @@ DIBasicType *DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits, DINode::DIFlags Flags, uint32_t NumExtraInhabitants, uint32_t DataSizeInBits) { - assert(!Name.empty() && "Unable to create type without name"); return DIBasicType::get(VMContext, dwarf::DW_TAG_base_type, Name, SizeInBits, 0, Encoding, NumExtraInhabitants, DataSizeInBits, Flags); |
