Remove redundant word word in AsmParser DIFlag parsing

This commit is contained in:
David Blaikie 2022-02-22 17:49:38 -08:00
parent a9861d3c85
commit 2172b1758d
2 changed files with 6 additions and 2 deletions

View File

@ -4167,8 +4167,8 @@ bool LLParser::parseMDField(LocTy Loc, StringRef Name, DIFlagField &Result) {
Val = DINode::getFlag(Lex.getStrVal());
if (!Val)
return tokError(Twine("invalid debug info flag flag '") +
Lex.getStrVal() + "'");
return tokError(Twine("invalid debug info flag '") + Lex.getStrVal() +
"'");
Lex.Lex();
return false;
};

View File

@ -0,0 +1,4 @@
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
; CHECK: <stdin>:[[@LINE+1]]:27: error: invalid debug info flag 'DIFlagUnknown'
!0 = !DISubprogram(flags: DIFlagUnknown)