diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-08-12 23:16:55 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-08-12 23:16:55 +0000 |
| commit | 01f4209631f32ccec686b232039238066a0866d9 (patch) | |
| tree | 027ec5921a5ae1aa820c122b8a8c0cf38757284d /clang | |
| parent | 737260662b3b3d0ae81070f6ad59527069c0ff6e (diff) | |
| download | bcm5719-llvm-01f4209631f32ccec686b232039238066a0866d9.tar.gz bcm5719-llvm-01f4209631f32ccec686b232039238066a0866d9.zip | |
Wdeprecated: CGBuilderInserter is copy constructed in some contexts - remove the unnecessarily disabling copy assignment to enable this
The object has very simple state, there seems no reason to disallow all
the usual value semantic operations.
llvm-svn: 244831
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/CGBuilder.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGBuilder.h b/clang/lib/CodeGen/CGBuilder.h index 6610659131f..fb36b8b5f15 100644 --- a/clang/lib/CodeGen/CGBuilder.h +++ b/clang/lib/CodeGen/CGBuilder.h @@ -22,9 +22,9 @@ class CodeGenFunction; /// instructions. template <bool PreserveNames> class CGBuilderInserter - : protected llvm::IRBuilderDefaultInserter<PreserveNames> { + : protected llvm::IRBuilderDefaultInserter<PreserveNames> { public: - CGBuilderInserter() : CGF(nullptr) {} + CGBuilderInserter() = default; explicit CGBuilderInserter(CodeGenFunction *CGF) : CGF(CGF) {} protected: @@ -33,9 +33,7 @@ protected: llvm::BasicBlock *BB, llvm::BasicBlock::iterator InsertPt) const; private: - void operator=(const CGBuilderInserter &) = delete; - - CodeGenFunction *CGF; + CodeGenFunction *CGF = nullptr; }; // Don't preserve names on values in an optimized build. |

