================
@@ -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:

I prefer instead of extending this function we just to do 

```
    OriginCombiner OC(this, IRB);
    for (args)
      OC.Add(I.getOperand(i));
```

inside of 

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

Reply via email to