@@ -5865,6 +5865,7 @@ bool LLParser::parseDICompileUnit(MDNode *&Result, bool IsDistinct) {
5865
5865
REQUIRED (file, MDField, (/* AllowNull */ false )); \
5866
5866
OPTIONAL (language, DwarfLangField, ); \
5867
5867
OPTIONAL (sourceLanguageName, DwarfSourceLangNameField, ); \
5868
+ OPTIONAL (sourceLanguageVersion, MDUnsignedField, (0 , UINT32_MAX)); \
5868
5869
OPTIONAL (producer, MDStringField, ); \
5869
5870
OPTIONAL (isOptimized, MDBoolField, ); \
5870
5871
OPTIONAL (flags, MDStringField, ); \
@@ -5897,7 +5898,8 @@ bool LLParser::parseDICompileUnit(MDNode *&Result, bool IsDistinct) {
5897
5898
Result = DICompileUnit::getDistinct (
5898
5899
Context,
5899
5900
language.Seen ? DISourceLanguageName (language.Val )
5900
- : DISourceLanguageName (sourceLanguageName.Val , 0 ),
5901
+ : DISourceLanguageName (sourceLanguageName.Val ,
5902
+ sourceLanguageVersion.Val ),
5901
5903
file.Val , producer.Val , isOptimized.Val , flags.Val , runtimeVersion.Val ,
5902
5904
splitDebugFilename.Val , emissionKind.Val , enums.Val , retainedTypes.Val ,
5903
5905
globals.Val , imports.Val , macros.Val , dwoId.Val , splitDebugInlining.Val ,
0 commit comments