From b9e9ec24eb4e9574b68513008fe02ec85b4f0d49 Mon Sep 17 00:00:00 2001 From: Andrew Sukach Date: Tue, 18 Jun 2024 15:28:51 -0400 Subject: [PATCH] to_cpp1: Remove missing initializer assert --- source/to_cpp1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/to_cpp1.h b/source/to_cpp1.h index 7064b0cb4..feaa6ae1e 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -6719,7 +6719,9 @@ class cppfront // Emit "auto" for deduced types (of course) if (type->is_wildcard()) { - assert(n.initializer); + if(!n.initializer) { + return; + } emit( *type, n.position() ); } // Otherwise, emit the type