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

Kyle Krüger via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 02:11:11 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");
----------------
kykrueger wrote:

Since this does indeed seem to compile without the getter calls, I could remove it. But I'm really not sure if the behavior will then become undefined.

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


More information about the llvm-commits mailing list