mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 04:51:23 +00:00
IRBuilder: Use move semantics for the IRBuilderInserter parameter
Just drive by cleanup while fixing -Wdeprecated warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f87750291
commit
4c12d59570
@ -517,10 +517,9 @@ template<bool preserveNames = true, typename T = ConstantFolder,
|
||||
class IRBuilder : public IRBuilderBase, public Inserter {
|
||||
T Folder;
|
||||
public:
|
||||
IRBuilder(LLVMContext &C, const T &F, const Inserter &I = Inserter(),
|
||||
IRBuilder(LLVMContext &C, const T &F, Inserter I = Inserter(),
|
||||
MDNode *FPMathTag = nullptr)
|
||||
: IRBuilderBase(C, FPMathTag), Inserter(I), Folder(F) {
|
||||
}
|
||||
: IRBuilderBase(C, FPMathTag), Inserter(std::move(I)), Folder(F) {}
|
||||
|
||||
explicit IRBuilder(LLVMContext &C, MDNode *FPMathTag = nullptr)
|
||||
: IRBuilderBase(C, FPMathTag), Folder() {
|
||||
|
Loading…
Reference in New Issue
Block a user