From d1a43d83daa6c8489cc063cdb17ce3c0022b027a Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 30 May 2013 12:53:52 -0400 Subject: 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. --- src/cpu/simple/atomic.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/simple') 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 { -- cgit v1.2.3