mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Added a stripModifiers() function to remove shared|const|immutable storage classes in D2 (should eventually be moved to a dhelpers file rather than llvm helpers).
Replaced a few occurances of STCinvariant with STCimmutable.
This commit is contained in:
@@ -96,7 +96,7 @@ void VarDeclaration::codegen(Ir* p)
|
||||
// global variable
|
||||
#if DMDV2
|
||||
// taken from dmd2/structs
|
||||
if (isDataseg() || (storage_class & (STCconst | STCinvariant) && init))
|
||||
if (isDataseg() || (storage_class & (STCconst | STCimmutable) && init))
|
||||
#else
|
||||
if (isDataseg())
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user