[llvm] [BoundsChecking] Update ubsantrap to use GuardKind (PR #124613)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 15:50:23 PST 2025


================
@@ -108,14 +108,17 @@ static Value *getBoundsCheckCond(Value *Ptr, Value *InstVal,
   return Or;
 }
 
-static CallInst *InsertTrap(BuilderTy &IRB, bool DebugTrapBB) {
+static CallInst *InsertTrap(BuilderTy &IRB, bool DebugTrapBB,
+                            std::optional<int8_t> GuardKind) {
   if (!DebugTrapBB)
----------------
vitalybuka wrote:

Never-mind, I confused DebugTrapBB with SingleTrapBB

https://github.com/llvm/llvm-project/pull/124613


More information about the llvm-commits mailing list