mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Add assertion
This commit is contained in:
parent
be932f49d2
commit
a2eb1fe9be
@ -3,6 +3,7 @@
|
||||
#include <Core/Defines.h>
|
||||
#include <Parsers/Lexer.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@ -27,6 +28,7 @@ public:
|
||||
|
||||
ALWAYS_INLINE inline const Token & operator[](size_t index)
|
||||
{
|
||||
assert(index < data.size());
|
||||
last_accessed_index = std::max(last_accessed_index, index);
|
||||
return data[index];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user