From 728f4448a91f0e19e71244efe94d894649102022 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 29 May 2016 10:46:35 +0000 Subject: 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 --- llvm/lib/IR/Function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Function.cpp') diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 36800eecf84..c8741964564 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -405,7 +405,7 @@ const std::string &Function::getGC() const { return getContext().getGC(*this); } -void Function::setGC(const std::string Str) { +void Function::setGC(std::string Str) { setValueSubclassDataBit(14, !Str.empty()); getContext().setGC(*this, std::move(Str)); } -- cgit v1.2.3