Skip to content

Commit

Permalink
fix: Disable function verification again
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed May 31, 2022
1 parent 5af603a commit 8242b47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/liblesma/Backend/Codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ void Codegen::defineFunction(Function *F, FuncDecl *node, SymbolTableEntry *clsS

// Verify function
// TODO: Verify function again, unfortunately functions from other modules have attributes attached without context of usage, and verify gives error
std::string output;
llvm::raw_string_ostream oss(output);
if (llvm::verifyFunction(*F, &oss)) {
F->print(outs());
throw CodegenError(node->getSpan(), "Invalid Function {}\n{}", node->getName(), output);
}
// std::string output;
// llvm::raw_string_ostream oss(output);
// if (llvm::verifyFunction(*F, &oss)) {
// F->print(outs());
// throw CodegenError(node->getSpan(), "Invalid Function {}\n{}", node->getName(), output);
// }

// Insert Function to Symbol Table
Scope = Scope->getParent();
Expand Down

0 comments on commit 8242b47

Please sign in to comment.