base: Remove Flags<U> 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 <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38713 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
4a503306a7
commit
d7b09c8fce
@@ -55,17 +55,6 @@ class Flags
|
||||
*/
|
||||
operator const Type() const { return _flags; }
|
||||
|
||||
/**
|
||||
* @ingroup api_flags
|
||||
*/
|
||||
template <typename U>
|
||||
const Flags<T> &
|
||||
operator=(const Flags<U> &flags)
|
||||
{
|
||||
_flags = flags._flags;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup api_flags
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user