summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Option/ArgList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Option/ArgList.cpp')
-rw-r--r--llvm/lib/Option/ArgList.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Option/ArgList.cpp b/llvm/lib/Option/ArgList.cpp
index 15f7e8bf4b8..fecd2371735 100644
--- a/llvm/lib/Option/ArgList.cpp
+++ b/llvm/lib/Option/ArgList.cpp
@@ -291,8 +291,7 @@ void ArgList::ClaimAllArgs() const {
const char *ArgList::MakeArgString(const Twine &T) const {
SmallString<256> Str;
- T.toVector(Str);
- return MakeArgString(Str.str());
+ return MakeArgString(T.toStringRef(Str));
}
const char *ArgList::GetOrMakeJoinedArgString(unsigned Index,
OpenPOWER on IntegriCloud