forked from OSchip/llvm-project
Remove redundant word word in AsmParser DIFlag parsing
This commit is contained in:
parent
a9861d3c85
commit
2172b1758d
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue