diff options
| author | Martin Storsjo <martin@martin.st> | 2018-09-06 19:03:24 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-09-06 19:03:24 +0000 |
| commit | 3a0c5d7cde294bf272295123fcf0dfe7ec420069 (patch) | |
| tree | c7cb5525b8a5c11d95afefddebbc79d8f4e91cfd /llvm/tools/llvm-ar/llvm-ar.cpp | |
| parent | 6df66001ee1df2a2339f3899b5d674f6cc8fcf9f (diff) | |
| download | bcm5719-llvm-3a0c5d7cde294bf272295123fcf0dfe7ec420069.tar.gz bcm5719-llvm-3a0c5d7cde294bf272295123fcf0dfe7ec420069.zip | |
[llvm-ar] Move a variable declaration closer to where it is needed. NFC.
This was from a missed review comment from D51338.
llvm-svn: 341577
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
| -rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 1751bad5119..9d2d765cdea 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -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() == '"') |

