[llvm] [llvm] Support building with c++23 (PR #154372)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 01:47:44 PDT 2025


================
@@ -615,7 +623,7 @@ bool SwitchMatcher::addMatcher(Matcher &Candidate) {
 }
 
 void SwitchMatcher::finalize() {
-  assert(Condition == nullptr && "Already finalized");
+  assert(Condition.get() == nullptr && "Already finalized");
----------------
nikic wrote:

It will not become undefined.

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


More information about the llvm-commits mailing list