From 02b307c0e94e23fffbe8776239ad94882676e266 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 4 Jan 2011 20:03:29 +0300 Subject: [PATCH] Detect circular definition of typedef's --- gen/typinf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 2be18126c6..912b9a8fb5 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -400,7 +400,7 @@ void TypeInfoTypedefDeclaration::llvmDefine() // void[] init // emit null array if we should use the basetype, or if the basetype // uses default initialization. - if (!sd->init || tinfo->isZeroInit(0)) + if (tinfo->isZeroInit(0) || !sd->init) { b.push_null_void_array(); }