================
@@ -8038,6 +8060,32 @@ class DependentBitIntType final : public Type, public 
llvm::FoldingSetNode {
   }
 };
 
+class PredefinedSugarType final : public Type {
+public:
+  friend class ASTContext;
+  using Kind = PredefinedSugarKind;
+
+private:
+  PredefinedSugarType(Kind KD, QualType UnderlyingType)
+      : Type(PredefinedSugar, UnderlyingType->getCanonicalTypeInternal(),
+             TypeDependence::None) {
+    PredefinedSugarTypeBits.Kind = llvm::to_underlying(KD);
+  }
----------------
mizvekov wrote:

```suggestion
  PredefinedSugarType(Kind KD, QualType CanonicalType)
      : Type(PredefinedSugar, CanonicalType,
             TypeDependence::None) {
    PredefinedSugarTypeBits.Kind = llvm::to_underlying(KD);
  }
```

https://github.com/llvm/llvm-project/pull/143653
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to