Return from unreachable spot

This commit is contained in:
apio 2022-08-24 16:35:05 +02:00
parent 3f70d4b8b6
commit d341e90237
2 changed files with 2 additions and 0 deletions

View File

@ -20,5 +20,6 @@ llvm::Value* MulNode::codegen(IRBuilder* generator)
return generator->getBuilder()->CreateSDiv(left->codegen(generator), right->codegen(generator));
default:
assert(0 && "unreachable");
return nullptr;
}
}

View File

@ -20,5 +20,6 @@ llvm::Value* SumNode::codegen(IRBuilder* generator)
return generator->getBuilder()->CreateSub(left->codegen(generator), right->codegen(generator));
default:
assert(0 && "unreachable");
return nullptr;
}
}