Use LLVMContext for generating MDStrings too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-07-02 17:28:30 +00:00
parent e951bdff0d
commit 12c99d8160

View File

@ -1643,7 +1643,7 @@ bool LLParser::ParseValID(ValID &ID) {
std::string Str;
if (ParseStringConstant(Str)) return true;
ID.ConstantVal = MDString::get(Str.data(), Str.data() + Str.size());
ID.ConstantVal = Context.getMDString(Str.data(), Str.data() + Str.size());
return false;
}
case lltok::APSInt: