[clang] Moves destructor type-trait deduction to a public function (PR #238456)

Christopher Di Bella via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 10:01:51 PST 2026


================
@@ -878,52 +968,12 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT,
              !RD->hasNonTrivialCopyAssignment();
     return false;
   case UTT_IsDestructible:
+    return DestructibleTraits(Self, C, KeyLoc, T).IsDestructible();
   case UTT_IsTriviallyDestructible:
+    return DestructibleTraits(Self, C, KeyLoc, T).IsTriviallyDestructible();
----------------
cjdb wrote:

```suggestion
    return DestructibleTraits(Self, C, KeyLoc, T).isTriviallyDestructible();
```

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


More information about the cfe-commits mailing list