diff options
author | Fangrui Song <maskray@google.com> | 2018-04-09 17:06:57 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-04-09 17:06:57 +0000 |
commit | bb08257cf318d817962f3ceb8deb33f90928a1a7 (patch) | |
tree | 1f3722de71a590b2386627c36aec5697391a2264 /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 52b033b82721af150a9bf986feacb9948cefd8c0 (diff) | |
download | bcm5719-llvm-bb08257cf318d817962f3ceb8deb33f90928a1a7.tar.gz bcm5719-llvm-bb08257cf318d817962f3ceb8deb33f90928a1a7.zip |
[llvm-mca] Fix MCACommentConsumer
llvm-svn: 329592
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 3f9682da17f..ab9c137e4df 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -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); } |