提交 f116f099 编写于 作者: T thartmann

8180511: Null pointer dereference in Matcher::ReduceInst()

Summary: Fixed a missing null check on the return value of MachNodeGenerator() found by Parfait.
Reviewed-by: kvn
上级 32822097
......@@ -1657,6 +1657,7 @@ MachNode *Matcher::ReduceInst( State *s, int rule, Node *&mem ) {
// Build the object to represent this state & prepare for recursive calls
MachNode *mach = s->MachNodeGenerator( rule, C );
guarantee(mach != NULL, "Missing MachNode");
mach->_opnds[0] = s->MachOperGenerator( _reduceOp[rule], C );
assert( mach->_opnds[0] != NULL, "Missing result operand" );
Node *leaf = s->_leaf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册