mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-11 22:39:02 +02:00
Fixed a segfault in ldc2 when compiling synchronized{} blocks.
This commit is contained in:
@@ -874,11 +874,8 @@ const LLStructType* DtoMutexType()
|
||||
opaque->refineAbstractTypeTo(pa.get());
|
||||
pmutex = isaStruct(pa.get());
|
||||
|
||||
if (gIR->module != NULL)
|
||||
{
|
||||
gIR->mutexType = pmutex;
|
||||
gIR->module->addTypeName("D_CRITICAL_SECTION", pmutex);
|
||||
}
|
||||
gIR->mutexType = pmutex;
|
||||
gIR->module->addTypeName("D_CRITICAL_SECTION", pmutex);
|
||||
return pmutex;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user