]> granicus.if.org Git - llvm/commit
Make StringSaver::save less ambiguous.
authorRui Ueyama <ruiu@google.com>
Thu, 27 Apr 2017 03:45:33 +0000 (03:45 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 27 Apr 2017 03:45:33 +0000 (03:45 +0000)
commit53d587ee0390301d92ea289bdac557570f9a2973
treee6d7b8d63f2f72df7e3ff48eec5a537fc49529cb
parent51ff1d79cde99b65b50fc149a5fddf27ba2fe97c
Make StringSaver::save less ambiguous.

Previously, an expression such as Saver.save(std::string("foo") + "bar")
didn't compile because there is an ambiguity as to whether the argument
is of const Twine& or StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301512 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/StringSaver.h