Merge pull request #41055 from snichols/null-callee-fix
Fix crash with null callee
This commit is contained in:
commit
cf05486d8e
4 changed files with 35 additions and 16 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