Skip to content

Commit bb08257

Browse files
committedApr 9, 2018
[llvm-mca] Fix MCACommentConsumer
llvm-svn: 329592
1 parent 52b033b commit bb08257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/tools/llvm-mca/llvm-mca.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class MCACommentConsumer : public AsmCommentConsumer {
191191
// Skip spaces and tabs
192192
Position = Comment.find_first_not_of(" \t");
193193
if (Position < Comment.size())
194-
Comment.drop_front(Position);
194+
Comment = Comment.drop_front(Position);
195195
// Use the rest of the string as a descriptor for this code snippet.
196196
Regions.beginRegion(Comment, Loc);
197197
}

0 commit comments

Comments
 (0)
Please sign in to comment.