mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 09:22:22 -07:00
SSA - Basic block optimizations
This commit is contained in:
+2
-6
@@ -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