|
@@ -472,9 +472,6 @@ Function *FunctionAST::codegen() {
|
|
|
if (!TheFunction)
|
|
|
return nullptr;
|
|
|
|
|
|
- if (!TheFunction->empty())
|
|
|
- return (Function*)ErrorV("Function cannot be redefined.");
|
|
|
-
|
|
|
// Create a new basic block to start insertion into.
|
|
|
BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction);
|
|
|
Builder.SetInsertPoint(BB);
|