[llvm] [DebugInfo] Enable deprecation of iterator-insertion methods (PR #102608)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 06:00:36 PDT 2024
================
@@ -2537,7 +2537,7 @@ class PHINode : public Instruction {
/// edges that this phi node will have (use 0 if you really have no idea).
static PHINode *Create(Type *Ty, unsigned NumReservedValues,
const Twine &NameStr = "",
- InsertPosition InsertBefore = nullptr) {
+ InsertPosition InsertBefore = (BasicBlock*)nullptr) {
----------------
nikic wrote:
Why is this necessary despite the `nullptr_t` overload on InsertPosition?
https://github.com/llvm/llvm-project/pull/102608
More information about the llvm-commits
mailing list