[all-commits] [llvm/llvm-project] 49386f: [Clang] Run destructors of variables declared in t...
Vincent via All-commits
all-commits at lists.llvm.org
Thu Jun 5 14:50:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 49386f40dd66ababe9bfde64c14cf3bfba5774c1
https://github.com/llvm/llvm-project/commit/49386f40dd66ababe9bfde64c14cf3bfba5774c1
Author: Vincent <llvm at viceroygroup.ca>
Date: 2025-06-05 (Thu, 05 Jun 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/ExprConstant.cpp
A clang/test/SemaCXX/gh139818.cpp
Log Message:
-----------
[Clang] Run destructors of variables declared in the second part of a `for` loop during constant evaluation (#140278)
Within the condition statement of the for block, the destructor doesn't
get called when evaluating compile time constants.
Resolves #139818
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list