[compiler-rt] [llvm] [Asan] Add "funclet" OpBundle to generated runtime calls if required by EH personality (PR #82533)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 10:51:18 PST 2024
================
@@ -642,6 +643,72 @@ static uint64_t GetCtorAndDtorPriority(Triple &TargetTriple) {
}
namespace {
+/// Helper RAII class to keep track of the inserted asan runtime calls during a
+/// pass on a single Function. Upon end of scope, detects and applies the
+/// required funclet OpBundle.
+class RuntimeCallInserter {
+ Function *OwnerFn = nullptr;
+ bool TrackInsertedCalls = false;
+ std::vector<CallInst *> InsertedCalls;
----------------
vitalybuka wrote:
SmallVector?
https://github.com/llvm/llvm-project/pull/82533
More information about the llvm-commits
mailing list