[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/146288 >From c678e8f0978480fadf3f7d2ffc30cd1d8229a9fa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 29 Jun 2025 12:30:28 -0700 Subject: [PATCH 1/4] [clang] Improve constexpr-unknown diagnostics. APValue

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/146288 >From c678e8f0978480fadf3f7d2ffc30cd1d8229a9fa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 29 Jun 2025 12:30:28 -0700 Subject: [PATCH 1/3] [clang] Improve constexpr-unknown diagnostics. APValue

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/146288 >From c678e8f0978480fadf3f7d2ffc30cd1d8229a9fa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 29 Jun 2025 12:30:28 -0700 Subject: [PATCH 1/2] [clang] Improve constexpr-unknown diagnostics. APValue

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/AST/ExprConstant.cpp clang/test/SemaCXX/con

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes APValue::ConstexprUnknown() constructs a broken LValue that doesn't have an lvalue path, which confuses later error handling. It turns out we don't actually use the result of createConstexprUnknownAPV

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/146288 APValue::ConstexprUnknown() constructs a broken LValue that doesn't have an lvalue path, which confuses later error handling. It turns out we don't actually use the result of createConstexprUnknownAPValu