Don't crash on 'Ddoc' D files without -D being given.

Fixes DMD test case 'test9369'.
This commit is contained in:
David Nadlinger
2013-03-16 16:04:08 +01:00
parent 153caa9bf7
commit b73d669880

View File

@@ -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