Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 773:5696a7167b21
Fix RawVarDecl double codegen bug. Thanks to downs for the testcase.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 18 Nov 2008 18:07:57 +0100 |
parents | f04dde6e882c |
children | 4adf0f742896 |
comparison
equal
deleted
inserted
replaced
772:cd7da2ba14d1 | 773:5696a7167b21 |
---|---|
1330 // we don't handle globals with this one | 1330 // we don't handle globals with this one |
1331 assert(!var->isDataseg()); | 1331 assert(!var->isDataseg()); |
1332 | 1332 |
1333 // we don't handle aliases either | 1333 // we don't handle aliases either |
1334 assert(!var->aliassym); | 1334 assert(!var->aliassym); |
1335 | |
1336 // if this already has storage, it must've been handled already | |
1337 if (var->ir.irLocal && var->ir.irLocal->value) | |
1338 return var->ir.irLocal->value; | |
1335 | 1339 |
1336 // referenced by nested function? | 1340 // referenced by nested function? |
1337 #if DMDV2 | 1341 #if DMDV2 |
1338 if (var->nestedrefs.dim) | 1342 if (var->nestedrefs.dim) |
1339 #else | 1343 #else |