diff options
author | Gabe Black <gabeblack@google.com> | 2020-01-29 23:49:32 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2020-02-01 09:25:30 +0000 |
commit | 5d3f1bfc48346f671c2b72ad06b3822c64457438 (patch) | |
tree | 3c1d6281fecfe5a8e067597be4ab722ddf94f44b /src/cpu | |
parent | f5e95d16e22f809457985318561e58facea7c57a (diff) | |
download | gem5-5d3f1bfc48346f671c2b72ad06b3822c64457438.tar.xz |
arch,base,cpu: Add some default constructors/operators explicitly.
Having them implicitly is apparently deprecated and throws a warning
in gcc 9, breaking the build.
Change-Id: Id4e3074966d1ffc6dd1aed9397de5eea84400027
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24926
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/inst_res.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/inst_res.hh b/src/cpu/inst_res.hh index bf9c649ef..d2ac3025e 100644 --- a/src/cpu/inst_res.hh +++ b/src/cpu/inst_res.hh @@ -75,6 +75,7 @@ class InstResult { public: /** Default constructor creates an invalid result. */ InstResult() : type(ResultType::Invalid) { } + InstResult(const InstResult &) = default; /** Scalar result from scalar. */ template<typename T> explicit InstResult(T i, const ResultType& t) : type(t) { |