mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
SSA - Basic block optimizations
This commit is contained in:
@@ -8,16 +8,12 @@ struct Array {
|
||||
isize capacity;
|
||||
|
||||
T &operator[](isize index) {
|
||||
if (count > 0) {
|
||||
GB_ASSERT_MSG(0 <= index && index < count, "Index out of bounds");
|
||||
}
|
||||
GB_ASSERT_MSG(0 <= index && index < count, "Index out of bounds");
|
||||
return data[index];
|
||||
}
|
||||
|
||||
T const &operator[](isize index) const {
|
||||
if (count > 0) {
|
||||
GB_ASSERT_MSG(0 <= index && index < count, "Index out of bounds");
|
||||
}
|
||||
GB_ASSERT_MSG(0 <= index && index < count, "Index out of bounds");
|
||||
return data[index];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user