diff options
author | Chuanbo Weng <chuanbo.weng@intel.com> | 2014-05-06 18:48:26 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-05-06 12:49:21 +0800 |
commit | 42136987b9925396ad138cc2493bed8ab11cbe35 (patch) | |
tree | 2c5465fdf37e3ae4eab94f9ac7163019bf7bd04c | |
parent | 817d8de657f2e9f89fb85fcb587d0173f6557916 (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.hpp | 2 |
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. }; |