Don't pass in a null pointer to std::string's ctor, an empty string
authorChris Lattner <sabre@nondot.org>
Wed, 18 Aug 2010 00:11:25 +0000 (00:11 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Aug 2010 00:11:25 +0000 (00:11 +0000)
commit7f7274ce7f3243bd71588c7a75a142c39e5c7e34
tree4f28d17599ed45c56d1637ff8b1efa4cb735934e
parentdc65f22390ab100381e281399003d18ce98fdd53
Don't pass in a null pointer to std::string's ctor, an empty string
ref should produce an empty std::string.  This fixes PR7879.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111332 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringRef.h