[flang-commits] [flang] [flang] Fix use-after-free cases found by valgrind (PR #122394)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Fri Jan 10 08:36:29 PST 2025
================
@@ -139,7 +139,7 @@ class Traverse {
return visitor_(x.base());
}
Result operator()(const Triplet &x) const {
- return Combine(x.lower(), x.upper(), x.stride());
+ return Combine(x.GetLower(), x.GetUpper(), x.GetStride());
----------------
eugeneepshteyn wrote:
Oh, so the old code was visiting a chain of automatic instances, instead of pointers?
https://github.com/llvm/llvm-project/pull/122394
More information about the flang-commits
mailing list