Index: src/AST/Decl.cpp
===================================================================
--- src/AST/Decl.cpp	(revision e4b6cf78dcc1d57c24f7b0c95fc9417c02ee0798)
+++ src/AST/Decl.cpp	(revision 9d6e7fa948fdd351c0915596d485db84188965be)
@@ -72,8 +72,8 @@
 // --- EnumDecl
 
-bool EnumDecl::valueOf( Decl* enumerator, long long& value ) const {
+bool EnumDecl::valueOf( const Decl * enumerator, long long& value ) const {
 	if ( enumValues.empty() ) {
 		long long crntVal = 0;
-		for ( const Decl* member : members ) {
+		for ( const Decl * member : members ) {
 			const ObjectDecl* field = strict_dynamic_cast< const ObjectDecl* >( member );
 			if ( field->init ) {
Index: src/AST/Decl.hpp
===================================================================
--- src/AST/Decl.hpp	(revision e4b6cf78dcc1d57c24f7b0c95fc9417c02ee0798)
+++ src/AST/Decl.hpp	(revision 9d6e7fa948fdd351c0915596d485db84188965be)
@@ -287,5 +287,5 @@
 
 	/// gets the integer value for this enumerator, returning true iff value found
-	bool valueOf( Decl* enumerator, long long& value ) const;
+	bool valueOf( const Decl * enumerator, long long& value ) const;
 
 	const Decl * accept( Visitor & v ) const override { return v.visit( this ); }
Index: src/InitTweak/InitTweak.h
===================================================================
--- src/InitTweak/InitTweak.h	(revision e4b6cf78dcc1d57c24f7b0c95fc9417c02ee0798)
+++ src/InitTweak/InitTweak.h	(revision 9d6e7fa948fdd351c0915596d485db84188965be)
@@ -58,4 +58,5 @@
 	/// returns the declaration of the function called by the expr (must be ApplicationExpr or UntypedExpr)
 	DeclarationWithType * getFunction( Expression * expr );
+	const ast::DeclWithType * getFunction( const ast::Expr * expr );
 
 	/// Non-Null if expr is a call expression whose target function is intrinsic
