mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
PR15149: crash when printing debug info metadata containing an invalid language spec
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1058,8 +1058,8 @@ void DIScope::printInternal(raw_ostream &OS) const {
|
|||||||
|
|
||||||
void DICompileUnit::printInternal(raw_ostream &OS) const {
|
void DICompileUnit::printInternal(raw_ostream &OS) const {
|
||||||
DIScope::printInternal(OS);
|
DIScope::printInternal(OS);
|
||||||
if (unsigned Lang = getLanguage())
|
if (const char *Lang = dwarf::LanguageString(getLanguage()))
|
||||||
OS << " [" << dwarf::LanguageString(Lang) << ']';
|
OS << " [" << Lang << ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
void DIEnumerator::printInternal(raw_ostream &OS) const {
|
void DIEnumerator::printInternal(raw_ostream &OS) const {
|
||||||
|
Reference in New Issue
Block a user