================
@@ -1656,7 +1656,8 @@ static Value 
*emitSetAndGetSwiftErrorValueAround(Instruction *Call,
     Builder.SetInsertPoint(Call->getNextNode());
   } else {
     auto Invoke = cast<InvokeInst>(Call);
-    Builder.SetInsertPoint(Invoke->getNormalDest()->getFirstNonPHIOrDbg());
+    BasicBlock::iterator It = Invoke->getNormalDest()->getFirstNonPHIOrDbg();
+    Builder.SetInsertPoint(It);
----------------
OCHyams wrote:

Why is this change necessary?

https://github.com/llvm/llvm-project/pull/124287
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to