diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-05-30 12:53:52 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-05-30 12:53:52 -0400 |
commit | d1a43d83daa6c8489cc063cdb17ce3c0022b027a (patch) | |
tree | 9d426be1673d8efba8c507eb02dd51f3033fdbed /src/cpu | |
parent | 64af621cc639d5b43567d3503ec17a0ab3c7ab06 (diff) | |
download | gem5-d1a43d83daa6c8489cc063cdb17ce3c0022b027a.tar.xz |
cpu: Make hash struct instead of class to please clang
This patch changes the type of the hash function for BasicBlockRanges
to match the original definition of the templatized type. Without
this, clang raises a warning and combined with the "-Werror" flag this
causes compilation to fail.
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/simple/atomic.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/simple/atomic.hh b/src/cpu/simple/atomic.hh index 5a9275a77..7366213f8 100644 --- a/src/cpu/simple/atomic.hh +++ b/src/cpu/simple/atomic.hh @@ -58,7 +58,7 @@ typedef std::pair<Addr, Addr> BasicBlockRange; /** Overload hash function for BasicBlockRange type */ __hash_namespace_begin template <> -class hash<BasicBlockRange> +struct hash<BasicBlockRange> { public: size_t operator()(const BasicBlockRange &bb) const { |