[clang] [clang] Allow C-style casts in constexpr in MS compatible mode (PR #197005)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 01:01:19 PDT 2026


================
@@ -18,6 +18,23 @@ using namespace clang::interp;
 
 State::~State() {}
 
+// With -fms-compatibility we allow pointer to integer casts
+// followed by nullptr casts.
+void State::clearDiagIfNeeded(diag::kind DiagId) {
----------------
eleviant wrote:

Addressed comments

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


More information about the cfe-commits mailing list