[clang] [llvm] [mlir] [polly] [IRBuilder] Use SetInsertPoint without redundant BasicBlock argument (PR #228476)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 01:06:04 PDT 2026


================
@@ -193,10 +193,7 @@ class IRBuilderBase {
   /// This specifies that created instructions should be inserted at the
   /// specified point.
   void SetInsertPoint(BasicBlock *TheBB, BasicBlock::iterator IP) {
-    BB = TheBB;
-    InsertPt = IP;
-    if (IP != TheBB->end())
-      SetCurrentDebugLocation(IP->getStableDebugLoc());
----------------
nikic wrote:

This is done by the other overload being called (see the next method after this).

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


More information about the cfe-commits mailing list