mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 03:31:22 +00:00
Finish migrating VMCore to StringRef/Twine based APIs.
llvm-svn: 77051
This commit is contained in:
1 parent
fbea11ae66
commit
d43b86d4a4
17 files changed
+127
-142
No files matched your search
@@ -757,8 +757,7 @@ bool BitcodeReader::ParseMetadata() {
|
||||
String.resize(MDStringLength);
|
||||
for (unsigned i = 0; i != MDStringLength; ++i)
|
||||
String[i] = Record[i];
|
||||
Value *V =
|
||||
Context.getMDString(String.c_str(), MDStringLength);
|
||||
Value *V = Context.getMDString(StringRef(String.data(), String.size()));
|
||||
ValueList.AssignValue(V, NextValueNo++);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user