diff options
author | Saagar Jha <saagar@saagarjha.com> | 2020-09-25 00:05:24 -0700 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-25 10:57:06 -0400 |
commit | 3b93626be9951b0f49f3e1609ddab53f86f712e1 (patch) | |
tree | 935c76dbd6dbf8864575ccbd2c046a73f4cef7e2 /gdb/compile | |
parent | ee1b8b9477b7e49ecc0bf40be0f60726815eb4ca (diff) | |
download | gdb-3b93626be9951b0f49f3e1609ddab53f86f712e1.zip gdb-3b93626be9951b0f49f3e1609ddab53f86f712e1.tar.gz gdb-3b93626be9951b0f49f3e1609ddab53f86f712e1.tar.bz2 |
Add a missing munmap_list move constructor
compile_module attempts to request a move constructor, but because
munmap_list doesn't have one it gets implicitly deleted. This is an
warning on clang under -Wdefaulted-function-deleted (which is enabled by
default):
In file included from compile/compile-object-load.c:21:
compile/compile-object-load.h:56:3: error: explicitly defaulted move constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
compile_module (compile_module &&other) = default;
^
compile/compile-object-load.h:86:22: note: move constructor of 'compile_module' is implicitly deleted because field 'munmap_list' has a deleted move constructor
struct munmap_list munmap_list;
^
compile/compile-object-load.h:30:28: note: 'munmap_list' has been explicitly marked deleted here
DISABLE_COPY_AND_ASSIGN (munmap_list);
^
gdb/ChangeLog:
* compile/compile-object-load.h: Give munmap_list a move
constructor.
Change-Id: I300c52e27da70087f18c7e359773c2b984073d8b
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-object-load.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/compile/compile-object-load.h b/gdb/compile/compile-object-load.h index 0254390..166d442 100644 --- a/gdb/compile/compile-object-load.h +++ b/gdb/compile/compile-object-load.h @@ -30,6 +30,7 @@ public: DISABLE_COPY_AND_ASSIGN (munmap_list); munmap_list &operator= (munmap_list &&) = default; + munmap_list (munmap_list &&) = default; /* Add a region to the list. */ void add (CORE_ADDR addr, CORE_ADDR size); |