Upgrade to LLVM-2.9. Thanks to David Nadlinger for the patch.

This commit is contained in:
Kelly Wilson
2011-04-19 21:57:15 -06:00
parent 3bfc0a04d8
commit b26b0f4196
15 changed files with 221 additions and 250 deletions

View File

@@ -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;
}