hokein wrote: > I have debug the issue, seems we cannot move the __range variable check to > the start of checkExprLifetimeImpl, we may missing extending lifetime of > temporaries.
Ah, that makes sense -- I missed the fact that this part of the code is also responsible for extending the object’s lifetime. Thanks a lot for looking into this and clarifying it. https://github.com/llvm/llvm-project/pull/145164 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits