From b73d669880426174b98e623889e9541a0a1183eb Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 16 Mar 2013 16:04:08 +0100 Subject: [PATCH] Don't crash on 'Ddoc' D files without -D being given. Fixes DMD test case 'test9369'. --- dmd2/module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmd2/module.c b/dmd2/module.c index 98a6f7bf..77b8aea0 100644 --- a/dmd2/module.c +++ b/dmd2/module.c @@ -750,7 +750,9 @@ void Module::parse() { comment = buf + 4; isDocFile = 1; -#if IN_DMD +#if IN_LLVM + doDocComment = true; +#else if (!docfile) setDocfile(); #endif