We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf0f9a commit 176ab5eCopy full SHA for 176ab5e
llvm/tools/llvm-lto2/llvm-lto2.cpp
@@ -251,10 +251,9 @@ static int run(int argc, char **argv) {
251
// resolutions and apply them in the order observed.
252
std::map<std::pair<std::string, std::string>, std::list<SymbolResolution>>
253
CommandLineResolutions;
254
- for (std::string R : SymbolResolutions) {
255
- StringRef Rest = R;
256
- StringRef FileName, SymbolName;
257
- std::tie(FileName, Rest) = Rest.split(',');
+ for (StringRef R : SymbolResolutions) {
+ StringRef Rest, FileName, SymbolName;
+ std::tie(FileName, Rest) = R.split(',');
258
if (Rest.empty()) {
259
llvm::errs() << "invalid resolution: " << R << '\n';
260
return 1;
0 commit comments