mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
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:
parent
e951bdff0d
commit
12c99d8160
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user