mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 12:21:52 -04:00
SSA - Basic block optimizations
This commit is contained in:
1 parent
e299c3693e
commit
2e0b260d3a
5 files changed
+164
-72
No files matched your search
+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