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

This commit is contained in:
Jon Meow authored and GitHub committed 2021-07-30 10:56:53 -07:00
1 parent 2f023b3479
commit b08f6bb0f1
7 files changed
+98 -15

No files matched your search

+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());