From: Daniel R. Carvalho Date: Sat, 26 Dec 2020 01:52:19 +0000 (-0300) Subject: base: Remove Flags assignment X-Git-Tag: develop-gem5-snapshot~302 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7b09c8fce5f79f00ce3baacbbb8b0430d4a20c0;p=gem5.git base: Remove Flags assignment Currently unused and broken. Since these are templated classes, and _flags is private, the assignment is a compilation error. Furthermore, assignment of flags of different types is likely undefined behavior. Change-Id: I8430045c42c003efc74e343cc5b4a4350bc2ad92 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38713 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Reviewed-by: Bobby R. Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/flags.hh b/src/base/flags.hh index 505a1e54f..8cefd2d33 100644 --- a/src/base/flags.hh +++ b/src/base/flags.hh @@ -55,17 +55,6 @@ class Flags */ operator const Type() const { return _flags; } - /** - * @ingroup api_flags - */ - template - const Flags & - operator=(const Flags &flags) - { - _flags = flags._flags; - return *this; - } - /** * @ingroup api_flags */