diff --git a/opt.cpp b/opt.cpp index dc201367..3de7794e 100644 --- a/opt.cpp +++ b/opt.cpp @@ -3865,6 +3865,10 @@ public: MakeInternalFuncsStaticPass(bool last = false) : ModulePass(ID) { } + void getAnalysisUsage(llvm::AnalysisUsage &AU) const { + AU.setPreservesCFG(); + } + const char *getPassName() const { return "Make internal funcs \"static\""; } bool runOnModule(llvm::Module &m); };