changeset dd6a9d314e40 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=dd6a9d314e40
description:
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:
src/cpu/simple/atomic.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 782b7284de21 -r dd6a9d314e40 src/cpu/simple/atomic.hh
--- a/src/cpu/simple/atomic.hh Tue May 21 11:57:14 2013 -0500
+++ b/src/cpu/simple/atomic.hh Thu May 30 12:53:52 2013 -0400
@@ -58,7 +58,7 @@
/** Overload hash function for BasicBlockRange type */
__hash_namespace_begin
template <>
-class hash<BasicBlockRange>
+struct hash<BasicBlockRange>
{
public:
size_t operator()(const BasicBlockRange &bb) const {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev