[all-commits] [llvm/llvm-project] 04cb6b: PR48587: is_constant_evaluated() should not evalua...
Richard Smith via All-commits
all-commits at lists.llvm.org
Fri Feb 12 16:23:20 PST 2021
Branch: refs/heads/release/12.x
Home: https://github.com/llvm/llvm-project
Commit: 04cb6b5ea8bd2b52e3d11f4cb970fd2d144eee6a
https://github.com/llvm/llvm-project/commit/04cb6b5ea8bd2b52e3d11f4cb970fd2d144eee6a
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2021-02-12 (Fri, 12 Feb 2021)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
M clang/test/CodeGenCXX/builtin-is-constant-evaluated.cpp
Log Message:
-----------
PR48587: is_constant_evaluated() should not evaluate to true during a
variable's destruction if it didn't do so during construction.
The standard doesn't give any guidance as to what to do here, but this
approach seems reasonable and conservative, and has been proposed to the
standard committee.
(cherry picked from commit c945dc4a5023d6a17d11fcda76509b94b36e34fc)
More information about the All-commits
mailing list