mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-02 04:20:05 +02:00
Upgrade to LLVM-2.9. Thanks to David Nadlinger for the patch.
This commit is contained in:
@@ -19,14 +19,14 @@ struct ArrayIter
|
||||
|
||||
ArrayIter<C>& operator=(const Array& arr)
|
||||
{
|
||||
array = &arr;
|
||||
array = const_cast<Array*>(&arr);
|
||||
index = 0;
|
||||
return *this;
|
||||
}
|
||||
ArrayIter<C>& operator=(const Array* arr)
|
||||
{
|
||||
assert(arr && "null array");
|
||||
array = arr;
|
||||
array = const_cast<Array*>(arr);
|
||||
index = 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user