mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 06:43:14 +01:00
Don't crash on 'Ddoc' D files without -D being given.
Fixes DMD test case 'test9369'.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user