[llvm] r341577 - [llvm-ar] Move a variable declaration closer to where it is needed. NFC.
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 12:03:24 PDT 2018
Author: mstorsjo
Date: Thu Sep 6 12:03:24 2018
New Revision: 341577
URL: http://llvm.org/viewvc/llvm-project?rev=341577&view=rev
Log:
[llvm-ar] Move a variable declaration closer to where it is needed. NFC.
This was from a missed review comment from D51338.
Modified:
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=341577&r1=341576&r2=341577&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Thu Sep 6 12:03:24 2018
@@ -791,12 +791,12 @@ static void runMRIScript() {
for (line_iterator I(Ref, /*SkipBlanks*/ false), E; I != E; ++I) {
StringRef Line = *I;
- StringRef CommandStr, Rest;
Line = Line.split(';').first;
Line = Line.split('*').first;
Line = Line.trim();
if (Line.empty())
continue;
+ StringRef CommandStr, Rest;
std::tie(CommandStr, Rest) = Line.split(' ');
Rest = Rest.trim();
if (!Rest.empty() && Rest.front() == '"' && Rest.back() == '"')
More information about the llvm-commits
mailing list