Index: src/Validate/ImplementEnumFunc.cpp
===================================================================
--- src/Validate/ImplementEnumFunc.cpp	(revision 31f48370c9fb2839ef3cfac9f848ba193f19dc78)
+++ src/Validate/ImplementEnumFunc.cpp	(revision bf64de39b4e7716bfa40284503bdce2bd31efc0b)
@@ -9,5 +9,4 @@
 class EnumAttrFuncGenerator {
 	const ast::EnumDecl* decl;
-	const ast::EnumInstType* instType;
 	unsigned int functionNesting;
 	ast::Linkage::Spec proto_linkage;
@@ -21,8 +20,7 @@
 	EnumAttrFuncGenerator(
 			const ast::EnumDecl* decl,
-			const ast::EnumInstType* instType,
+			const ast::EnumInstType*,
 			unsigned int functionNesting )
 		: decl(decl),
-		  instType{instType},
 		  functionNesting{functionNesting},
 		  proto_linkage{ast::Linkage::Cforall} {}
@@ -50,5 +48,5 @@
 	ast::FunctionDecl* genFromInstanceProto() const;
 	ast::FunctionDecl* genInstToInstFuncProto(const char* func) const;
-	void genFromIntBody(ast::FunctionDecl *) const; 
+	void genFromIntBody(ast::FunctionDecl *) const;
 	void genFromInstanceBody(ast::FunctionDecl *) const;
 	void genSuccPredBody(ast::FunctionDecl *, const char *) const;
@@ -388,5 +386,5 @@
 	if (decl->base) genTypedEnumFunction(ast::EnumAttribute::Value);
 	genTypedEnumFunction(ast::EnumAttribute::Label);
-	genTypedEnumFunction(ast::EnumAttribute::Posn);	
+	genTypedEnumFunction(ast::EnumAttribute::Posn);
 }
 
