Skip to content

Commit e0c7136

Browse files
authored
[LowerAllowCheck] preserve CFG analyses (#145816)
1 parent 9a44f55 commit e0c7136

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ PreservedAnalyses LowerAllowCheckPass::run(Function &F,
158158
AM.getResult<OptimizationRemarkEmitterAnalysis>(F);
159159

160160
return removeUbsanTraps(F, BFI, PSI, ORE, Opts.cutoffs)
161-
? PreservedAnalyses::none()
161+
// We do not change the CFG, we only replace the intrinsics with
162+
// true or false.
163+
? PreservedAnalyses::none().preserveSet<CFGAnalyses>()
162164
: PreservedAnalyses::all();
163165
}
164166

0 commit comments

Comments
 (0)