Commit 3e24242a authored by Jonas Devlieghere's avatar Jonas Devlieghere
Browse files

[lld] Replace SmallStr.str().str() with std::string conversion operator.

Use the std::string conversion operator introduced in
d7049213.
parent 509e21a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1095,7 +1095,7 @@ Optional<std::string> getReproduceFile(const opt::InputArgList &args) {
  if (auto *arg = args.getLastArg(OPT_linkrepro)) {
    SmallString<64> path = StringRef(arg->getValue());
    sys::path::append(path, "repro.tar");
    return path.str().str();
    return std::string(path);
  }

  return None;
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
    path::append(s, path1, path2);

  if (fs::exists(s))
    return s.str().str();
    return std::string(s);
  return None;
}

+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
  SmallString<128> s;
  sys::path::append(s, path1, path2);
  if (sys::fs::exists(s))
    return s.str().str();
    return std::string(s);
  return None;
}

+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
  SmallString<128> s;
  path::append(s, path1, path2);
  if (fs::exists(s))
    return s.str().str();
    return std::string(s);
  return None;
}