Return from unreachable spot
This commit is contained in:
parent
3f70d4b8b6
commit
d341e90237
@ -20,5 +20,6 @@ llvm::Value* MulNode::codegen(IRBuilder* generator)
|
|||||||
return generator->getBuilder()->CreateSDiv(left->codegen(generator), right->codegen(generator));
|
return generator->getBuilder()->CreateSDiv(left->codegen(generator), right->codegen(generator));
|
||||||
default:
|
default:
|
||||||
assert(0 && "unreachable");
|
assert(0 && "unreachable");
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -20,5 +20,6 @@ llvm::Value* SumNode::codegen(IRBuilder* generator)
|
|||||||
return generator->getBuilder()->CreateSub(left->codegen(generator), right->codegen(generator));
|
return generator->getBuilder()->CreateSub(left->codegen(generator), right->codegen(generator));
|
||||||
default:
|
default:
|
||||||
assert(0 && "unreachable");
|
assert(0 && "unreachable");
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user