Add a global arena to start cleaning up ASAN errors (#687)

This commit is contained in:
Jon Meow
2021-07-30 10:56:53 -07:00
committed by GitHub
parent 2f023b3479
commit b08f6bb0f1
7 changed files with 98 additions and 15 deletions
+3
View File
@@ -10,8 +10,11 @@
#include "executable_semantics/syntax/parse.h"
#include "executable_semantics/syntax/syntax_helpers.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/InitLLVM.h"
int main(int argc, char* argv[]) {
llvm::InitLLVM(argc, argv);
// Printing to stderr should flush stdout. This is most noticeable when stderr
// is piped to stdout.
llvm::errs().tie(&llvm::outs());