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.
This commit is contained in:
Andreas Hansson
2013-05-30 12:53:52 -04:00
parent 64af621cc6
commit d1a43d83da

View File

@@ -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 {