mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-04 10:59:03 +02:00
Updated to dmdfe 2.051
This commit is contained in:
@@ -1568,12 +1568,16 @@ void VolatileStatement::toIR(IRState* p)
|
||||
DtoMemoryBarrier(false, true, false, false);
|
||||
|
||||
// do statement
|
||||
p->func()->gen->targetScopes.push_back(IRTargetScope(this,new EnclosingVolatile(this),NULL,NULL));
|
||||
p->func()->gen->targetScopes.push_back(IRTargetScope(this,new EnclosingVolatile(this),NULL,NULL));
|
||||
statement->toIR(p);
|
||||
p->func()->gen->targetScopes.pop_back();
|
||||
p->func()->gen->targetScopes.pop_back();
|
||||
|
||||
// no point in a unreachable barrier, terminating statements must insert this themselves.
|
||||
#if DMDV2
|
||||
if (statement->blockExit(false) & BEfallthru)
|
||||
#else
|
||||
if (statement->blockExit() & BEfallthru)
|
||||
#endif
|
||||
{
|
||||
// store-load
|
||||
DtoMemoryBarrier(false, false, true, false);
|
||||
|
||||
Reference in New Issue
Block a user