Added an assert for op_t::left()
This commit is contained in:
parent
1dce419ba3
commit
4481396913
1 changed files with 1 additions and 0 deletions
1
src/op.h
1
src/op.h
|
|
@ -192,6 +192,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
ptr_op_t& left() {
|
ptr_op_t& left() {
|
||||||
|
assert(kind > TERMINALS || kind == IDENT);
|
||||||
return left_;
|
return left_;
|
||||||
}
|
}
|
||||||
const ptr_op_t& left() const {
|
const ptr_op_t& left() const {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue