projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove more superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git]
/
lib
/
Support
/
CommandLine.cpp
diff --git
a/lib/Support/CommandLine.cpp
b/lib/Support/CommandLine.cpp
index af6c6056f18344d18879f36e2d21352adc6747d0..4f72d9a28f6c57b6763371c37b6da0cebd83b639 100644
(file)
--- a/
lib/Support/CommandLine.cpp
+++ b/
lib/Support/CommandLine.cpp
@@
-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();
}
}
}