Index: src/CodeGen/CodeGenerator.cc
===================================================================
--- src/CodeGen/CodeGenerator.cc	(revision a0c7dc36aea9a9949803d2973e714ade8c8e51e8)
+++ src/CodeGen/CodeGenerator.cc	(revision a4ca48cb2a2bd7a18b74f59046bc85b612b8c212)
@@ -9,7 +9,7 @@
 // Author           : Richard C. Bilson
 // Created On       : Mon May 18 07:44:20 2015
-// Last Modified By : Andrew Beach
-// Last Modified On : Fri Aug 18 15:34:00 2017
-// Update Count     : 488
+// Last Modified By : Peter A. Buhr
+// Last Modified On : Sun Sep  3 20:42:52 2017
+// Update Count     : 490
 //
 #include "CodeGenerator.h"
@@ -59,5 +59,5 @@
 
 	void CodeGenerator::asmName( DeclarationWithType * decl ) {
-		if ( ConstantExpr * asmName = decl->get_asmName() ) {
+		if ( ConstantExpr * asmName = dynamic_cast<ConstantExpr *>(decl->get_asmName()) ) {
 			output << " asm ( " << asmName->get_constant()->get_value() << " )";
 		} // if
Index: src/CodeGen/Generate.cc
===================================================================
--- src/CodeGen/Generate.cc	(revision a0c7dc36aea9a9949803d2973e714ade8c8e51e8)
+++ src/CodeGen/Generate.cc	(revision a4ca48cb2a2bd7a18b74f59046bc85b612b8c212)
@@ -33,5 +33,5 @@
 		/// Removes misc. nodes that should not exist in CodeGen
 		struct TreeCleaner {
-			void visit( CompoundStmt * stmt );
+			void previsit( CompoundStmt * stmt );
 
 			static bool shouldClean( Declaration * );
@@ -72,5 +72,5 @@
 
 	namespace {
-		void TreeCleaner::visit( CompoundStmt * cstmt ) {
+		void TreeCleaner::previsit( CompoundStmt * cstmt ) {
 			filter( cstmt->kids, [](Statement * stmt) {
 				if ( DeclStmt * declStmt = dynamic_cast< DeclStmt * >( stmt ) ) {
