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:
Benjamin Kramer
2016-05-29 10:46:35 +00:00
parent 2ff22b74ed
commit ac307e44e3
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)