[llvm-mca] Fix MCACommentConsumer

llvm-svn: 329592
This commit is contained in:
Fangrui Song 2018-04-09 17:06:57 +00:00
parent 52b033b827
commit bb08257cf3
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ public:
// Skip spaces and tabs
Position = Comment.find_first_not_of(" \t");
if (Position < Comment.size())
Comment.drop_front(Position);
Comment = Comment.drop_front(Position);
// Use the rest of the string as a descriptor for this code snippet.
Regions.beginRegion(Comment, Loc);
}