From: Andreas Hansson Date: Thu, 30 May 2013 16:53:52 +0000 (-0400) Subject: cpu: Make hash struct instead of class to please clang X-Git-Tag: stable_2013_10_14~100 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1a43d83daa6c8489cc063cdb17ce3c0022b027a;p=gem5.git 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. --- 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 BasicBlockRange; /** Overload hash function for BasicBlockRange type */ __hash_namespace_begin template <> -class hash +struct hash { public: size_t operator()(const BasicBlockRange &bb) const {