================
@@ -3789,15 +3789,26 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF,
bool NeedsAbortSuffix =
IsFatal && RecoverKind != CheckRecoverableKind::Unrecoverable;
bool MinimalRuntime = CGF.CGM.getCodeGenOpts().SanitizeMinimalRuntime;
+ // The preserve-all logic is somewhat duplicated in BoundsChecking.cpp for
+ // local-bounds. Make sure to change that too.
+ const auto &T = CGF.CGM.getTriple();
+ bool HandlerPreserveAllRegs =
+ CGF.CGM.getCodeGenOpts().SanitizeHandlerPreserveAllRegs &&
----------------
fmayer wrote:
> Eg. there are some UBSAN/sanitizer file which flip on/of features deppending
> on context
your patch is exporting the logic outside that thing
Please clarify
https://github.com/llvm/llvm-project/pull/168645
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits