fix build with gcc 10
MODIFY
llvm_util/llvm2alive.cpp
llvm_util/llvm2alive.cpp
@@ -25,7 +25,6 @@ using llvm::LLVMContext;
namespace {
-ostream *out;
unsigned constexpr_idx;
unsigned copy_idx;

MODIFY
llvm_util/utils.cpp
llvm_util/utils.cpp
@@ -429,11 +429,11 @@ void init_llvm_utils(ostream &os, const llvm::DataLayout &dataLayout) {
DL = &dataLayout;
}
-std::ostream& get_outs() {
+ostream& get_outs() {
return *out;
}
-void set_outs(std::ostream &os) {
+void set_outs(ostream &os) {
out = &os;
}

MODIFY
llvm_util/utils.h
llvm_util/utils.h
@@ -52,7 +52,7 @@ PRINT(llvm::Value)
void init_llvm_utils(std::ostream &os, const llvm::DataLayout &DL);
std::ostream& get_outs();
-void set_outs(std::ostream &);
+void set_outs(std::ostream &os);
void reset_state(IR::Function &f);
}

fix build with gcc 10