From e35c28b834edba9f7d7c64308a19a2ee0cd91bff Mon Sep 17 00:00:00 2001 From: Eric Schweitz Date: Wed, 27 Mar 2019 16:15:19 -0700 Subject: [PATCH] fixes a bug with COMMON blocks when both debug and optimizations are on --- lib/AsmParser/LLParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 72c3fe8d18677..e38ac31c40177 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -4726,7 +4726,7 @@ bool LLParser::ParseDITemplateValueParameter(MDNode *&Result, bool IsDistinct) { /// isDefinition: true, declaration: !3, align: 8) bool LLParser::ParseDIGlobalVariable(MDNode *&Result, bool IsDistinct) { #define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ - REQUIRED(name, MDStringField, (/* AllowEmpty */ true)); \ + OPTIONAL(name, MDStringField, (/* AllowEmpty */ true)); \ OPTIONAL(scope, MDField, ); \ OPTIONAL(linkageName, MDStringField, ); \ OPTIONAL(file, MDField, ); \