Skip to content

Commit 5d7b02a

Browse files
committed
fixup: Update DIBuilder::createCompileUnit assertion
This had been missed by previous language id additions too
1 parent 0fac56e commit 5d7b02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/DIBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ DICompileUnit *DIBuilder::createCompileUnit(
139139
DICompileUnit::DebugNameTableKind NameTableKind, bool RangesBaseAddress,
140140
StringRef SysRoot, StringRef SDK) {
141141

142-
assert(((Lang <= dwarf::DW_LANG_Mojo && Lang >= dwarf::DW_LANG_C89) ||
142+
assert(((Lang <= dwarf::DW_LANG_Metal && Lang >= dwarf::DW_LANG_C89) ||
143143
(Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
144144
"Invalid Language tag");
145145

0 commit comments

Comments
 (0)