[llvm] r329592 - [llvm-mca] Fix MCACommentConsumer
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 9 10:06:57 PDT 2018
Author: maskray
Date: Mon Apr 9 10:06:57 2018
New Revision: 329592
URL: http://llvm.org/viewvc/llvm-project?rev=329592&view=rev
Log:
[llvm-mca] Fix MCACommentConsumer
Modified:
llvm/trunk/tools/llvm-mca/llvm-mca.cpp
Modified: llvm/trunk/tools/llvm-mca/llvm-mca.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/llvm-mca.cpp?rev=329592&r1=329591&r2=329592&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/llvm-mca.cpp (original)
+++ llvm/trunk/tools/llvm-mca/llvm-mca.cpp Mon Apr 9 10:06:57 2018
@@ -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);
}
More information about the llvm-commits
mailing list