mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 00:31:37 +00:00
Remove some 'const' specifiers that do nothing but prevent moving the argument.
Found by clang-tidy's misc-move-const-arg. While there drop some obsolete c_str() calls. llvm-svn: 271181
This commit is contained in:
1 parent
0da23a2713
commit
728f4448a9
7 files changed
+7
-7
No files matched your search
@@ -3863,7 +3863,7 @@ std::error_code BitcodeReader::parseModule(uint64_t ResumeBit,
|
||||
if (Record.size() > 8 && Record[8]) {
|
||||
if (Record[8]-1 >= GCTable.size())
|
||||
return error("Invalid ID");
|
||||
Func->setGC(GCTable[Record[8]-1].c_str());
|
||||
Func->setGC(GCTable[Record[8] - 1]);
|
||||
}
|
||||
bool UnnamedAddr = false;
|
||||
if (Record.size() > 9)
|
||||
|
||||
Reference in new issue
Block a user