Fixing null callee crash.
This commit is contained in:
parent
6831da630f
commit
8a13be50ab
4 changed files with 30 additions and 15 deletions
|
|
@ -383,6 +383,14 @@ public:
|
|||
CallNode() {
|
||||
type = CALL;
|
||||
}
|
||||
|
||||
Type get_callee_type() const {
|
||||
if (callee == nullptr) {
|
||||
return Type::NONE;
|
||||
} else {
|
||||
return callee->type;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
struct CastNode : public ExpressionNode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue