Skip to content

Commit

Permalink
add required analysis for ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and pchintalapudi committed Apr 19, 2022
1 parent 00e73ec commit abf0e4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,10 @@ void addPipeline(ModulePassManager &MPM, int opt_level, bool lower_intrinsics, b
MPM.addPass(llvm::createModuleToFunctionPassAdaptor(std::move(FPM)));
}
}
#if defined(_COMPILER_ASAN_ENABLED_)
// Needed for both AddressSanitizerPass and ModuleAddressSanitizerPass
MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
#endif
{
FunctionPassManager FPM;
#if defined(_COMPILER_ASAN_ENABLED_)
Expand Down

0 comments on commit abf0e4c

Please sign in to comment.