Commit 59ae182b authored by John Ericson's avatar John Ericson
Browse files

Remove unnecessary StringRef convesion in llvm-config

We have a string litteral (via CPP) used to construct `StringRef`, which
is used to construct a `SmallString`. Just construct the latter
directly.

Differential Revision: https://reviews.llvm.org/D111322
parent 0f00aa50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ int main(int argc, char **argv) {
  } else {
    ActivePrefix = CurrentExecPrefix;
    ActiveIncludeDir = ActivePrefix + "/include";
    SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
    SmallString<256> path(LLVM_TOOLS_INSTALL_DIR);
    sys::fs::make_absolute(ActivePrefix, path);
    ActiveBinDir = std::string(path.str());
    ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;