mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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