summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuanbo Weng <chuanbo.weng@intel.com>2014-05-06 18:48:26 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-05-06 12:49:21 +0800
commit42136987b9925396ad138cc2493bed8ab11cbe35 (patch)
tree2c5465fdf37e3ae4eab94f9ac7163019bf7bd04c
parent817d8de657f2e9f89fb85fcb587d0173f6557916 (diff)
GBE: Fix one build error of friend declaration for a class.
If the g++ is older than 4.7.0, the class-key of the elaborated-type-specifier is required in a friend declaration for a class. So modify the code to make it compitible with old g++ version. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--backend/src/backend/gen_context.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/backend/gen_context.hpp b/backend/src/backend/gen_context.hpp
index 3b59797b..3eda1486 100644
--- a/backend/src/backend/gen_context.hpp
+++ b/backend/src/backend/gen_context.hpp
@@ -195,7 +195,7 @@ namespace gbe
/*! allocate a new curbe register and insert to curbe pool. */
void allocCurbeReg(ir::Register reg, gbe_curbe_type value, uint32_t subValue = 0);
- friend GenRegAllocator; //!< need to access errCode directly.
+ friend class GenRegAllocator; //!< need to access errCode directly.
};