We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c19e4 commit c84cdd1Copy full SHA for c84cdd1
pl0/pl0.cc
@@ -14,6 +14,7 @@
14
#include "llvm/ExecutionEngine/MCJIT.h"
15
#include "llvm/IR/IRBuilder.h"
16
#include "llvm/IR/ValueSymbolTable.h"
17
+#include "llvm/IR/Verifier.h"
18
#include "llvm/Support/TargetSelect.h"
19
20
using namespace peg;
@@ -627,6 +628,7 @@ struct LLVM {
627
628
builder_.SetInsertPoint(BB);
629
compile_block(ast->nodes[0]);
630
builder_.CreateRetVoid();
631
+ verifyFunction(*fn);
632
}
633
634
@@ -679,6 +681,7 @@ struct LLVM {
679
681
680
682
compile_block(block);
683
684
685
builder_.SetInsertPoint(prevBB);
686
687
0 commit comments