[llvm] Merge sourcelocation in CSEMIRBuilder::getDominatingInstrForID. (PR #90922)

Shubham Sandeep Rastogi via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 11:05:29 PDT 2024


================
@@ -856,8 +856,9 @@ class MachineIRBuilder {
   ///      type.
   ///
   /// \return The newly created instruction.
-  virtual MachineInstrBuilder buildConstant(const DstOp &Res,
-                                            const ConstantInt &Val);
+  virtual MachineInstrBuilder
+  buildConstant(const DstOp &Res, const ConstantInt &Val,
+                SmallVectorImpl<DILocation *> *Locs = nullptr);
----------------
rastogishubham wrote:

Good point! I will make the change

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


More information about the llvm-commits mailing list