Remove more superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git] / lib / Support / CommandLine.cpp
index af6c6056f18344d18879f36e2d21352adc6747d0..4f72d9a28f6c57b6763371c37b6da0cebd83b639 100644 (file)
@@ -313,7 +313,7 @@ static Option *LookupNearestOption(StringRef Arg,
         if (RHS.empty() || !PermitValue)
           NearestString = OptionNames[i];
         else
-          NearestString = std::string(OptionNames[i]) + "=" + RHS.str();
+          NearestString = (Twine(OptionNames[i]) + "=" + RHS).str();
       }
     }
   }