File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ namespace llvm {
24
24
SourceMgr SrcMgr;
25
25
unsigned ErrorsPrinted = 0 ;
26
26
27
- static void PrintMessage (ArrayRef<SMLoc> Loc , SourceMgr::DiagKind Kind,
27
+ static void PrintMessage (ArrayRef<SMLoc> Locs , SourceMgr::DiagKind Kind,
28
28
const Twine &Msg) {
29
29
// Count the total number of errors printed.
30
30
// This is used to exit with an error code if there were any errors.
31
31
if (Kind == SourceMgr::DK_Error)
32
32
++ErrorsPrinted;
33
33
34
34
SMLoc NullLoc;
35
- if (Loc .empty ())
36
- Loc = NullLoc;
37
- SrcMgr.PrintMessage (Loc. front (), Kind, Msg);
38
- for (unsigned i = 1 ; i < Loc. size (); ++i )
39
- SrcMgr.PrintMessage (Loc[i] , SourceMgr::DK_Note,
35
+ if (Locs .empty ())
36
+ Locs = NullLoc;
37
+ SrcMgr.PrintMessage (Locs. consume_front (), Kind, Msg);
38
+ for (SMLoc Loc : Locs )
39
+ SrcMgr.PrintMessage (Loc, SourceMgr::DK_Note,
40
40
" instantiated from multiclass" );
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments