Skip to content

Commit

Permalink
Remove redundant word word in AsmParser DIFlag parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Feb 23, 2022
1 parent a9861d3 commit 2172b17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/AsmParser/LLParser.cpp
Expand Up @@ -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;
};
Expand Down
4 changes: 4 additions & 0 deletions llvm/test/Assembler/invalid-diflag-bad.ll
@@ -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)

0 comments on commit 2172b17

Please sign in to comment.