Skip to content

Commit 41e87d8

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
1 parent 7dfcced commit 41e87d8

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
@@ -159,7 +159,9 @@ PreservedAnalyses LowerAllowCheckPass::run(Function &F,
159159
AM.getResult<OptimizationRemarkEmitterAnalysis>(F);
160160

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

0 commit comments

Comments
 (0)