Skip to content

Commit

Permalink
Remove spurious code (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli authored Jul 25, 2023
1 parent b1f1e9c commit 9778ec9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/codegen/CreateTerm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,13 +1145,7 @@ bool makeFunction(
}
CreateTerm creator = CreateTerm(subst, definition, block, Module, false);
llvm::Value *retval = creator(pattern).first;
if (funcType->getReturnType()
== llvm::PointerType::getUnqual(retval->getType())) {
auto tempAlloc = allocateTerm(
retval->getType(), creator.getCurrentBlock(), "koreAllocAlwaysGC");
new llvm::StoreInst(retval, tempAlloc, creator.getCurrentBlock());
retval = tempAlloc;
}

auto CurrentBlock = creator.getCurrentBlock();
if (apply && bigStep) {
auto ProofOutputFlag = Module->getOrInsertGlobal(
Expand Down

0 comments on commit 9778ec9

Please sign in to comment.