================ @@ -2483,13 +2484,21 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> { using OriginCombiner = Combiner<false>; /// Propagate origin for arbitrary operation. - void setOriginForNaryOp(Instruction &I) { + /// + /// Optionally skips n trailing operands. + void setOriginForNaryOp(Instruction &I, unsigned int skipLastOperands = 0) { ---------------- vitalybuka wrote:
for this particular case skipping callee is unnecessary, it will be skipped in .Add() as `getShadow` for that operand should be null. https://github.com/llvm/llvm-project/pull/99360 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits