[clang] [clang] Fix a use-after-free in expression evaluation (PR #118480)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 01:08:59 PST 2025


kadircet wrote:

sample in https://github.com/llvm/llvm-project/pull/118480#issuecomment-2538988006 still triggers the crash for me, need to pass `-std=c++20`.
but note that it isn't the sample that should be built with ASAN, it's the clang itself that needs to be built with ASAN. passing `-DLLVM_USE_SANITIZER=Address` in your cmake configuration should be enough for that.

https://github.com/llvm/llvm-project/pull/118480


More information about the cfe-commits mailing list