[Mlir-commits] [llvm] [mlir] [IRBuilder] Remove insertion block (PR #234245)
Ramkumar Ramachandra
llvmlistbot at llvm.org
Thu Oct 22 01:03:58 PDT 2026
================
@@ -220,18 +214,16 @@ class IRBuilderBase {
/// This specifies that created instructions should be inserted at
/// the specified point.
void SetInsertPoint(BasicBlock::iterator IP) {
- BB = IP.getNodeParent();
InsertPt = IP;
- if (IP != BB->end())
+ if (IP != IP.getNodeParent()->end())
----------------
artagnon wrote:
```suggestion
if (IP.isValid())
```
?
https://github.com/llvm/llvm-project/pull/234245
More information about the Mlir-commits
mailing list