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:
Benjamin Kramer
2016-05-29 10:46:35 +00:00
parent 0da23a2713
commit 728f4448a9
7 changed files with 7 additions and 7 deletions

View File

@@ -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)