mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
llvm-wrapper: adapt for an LLVM API change
This adapts llvm-wrapper for
dacfa24f75
,
which removed ASanGlobalsMetadataAnalysis.
This commit is contained in:
parent
baf382e63c
commit
fe02ee8be9
@ -985,7 +985,9 @@ LLVMRustOptimizeWithNewPassManager(
|
||||
if (SanitizerOptions->SanitizeAddress) {
|
||||
OptimizerLastEPCallbacks.push_back(
|
||||
[SanitizerOptions](ModulePassManager &MPM, OptimizationLevel Level) {
|
||||
#if LLVM_VERSION_LT(15, 0)
|
||||
MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>());
|
||||
#endif
|
||||
#if LLVM_VERSION_GE(14, 0)
|
||||
AddressSanitizerOptions opts = AddressSanitizerOptions{
|
||||
/*CompileKernel=*/false,
|
||||
|
Loading…
Reference in New Issue
Block a user