Skip to content

Commit d3df585

Browse files
committed
Fix last comments
1 parent 7bd2ece commit d3df585

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/MC/MCParser/COFFMasmParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,8 @@ bool COFFMasmParser::parseDirectiveOption(StringRef Directive, SMLoc Loc) {
441441
/// statements
442442
/// label "endproc"
443443
bool COFFMasmParser::parseDirectiveProc(StringRef Directive, SMLoc Loc) {
444-
if (!getStreamer().getCurrentFragment()) {
444+
if (!getStreamer().getCurrentFragment())
445445
return Error(getTok().getLoc(), "expected section directive");
446-
}
447446

448447
StringRef Label;
449448
if (getParser().parseIdentifier(Label))
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s
22

3-
; CHECK: :[[# @LINE + 1]]:1: error: expected section directive before 'PROC' directive
3+
; CHECK: :[[# @LINE+1]]:1: error: expected section directive
44
foo PROC
5-
; CHECK: :[[# @LINE + 1]]:6: error: expected section directive before assembly directive
5+
; CHECK: :[[# @LINE+1]]:6: error: expected section directive before assembly directive
66
ret
77
foo ENDP

0 commit comments

Comments
 (0)