================
@@ -2767,6 +2767,10 @@ class DependentBitIntTypeLoc final
     : public InheritingConcreteTypeLoc<TypeSpecTypeLoc, DependentBitIntTypeLoc,
                                        DependentBitIntType> {};
 
+class PredefinedSugarTypeLoc final
+    : public InheritingConcreteTypeLoc<TypeSpecTypeLoc, PredefinedSugarTypeLoc,
+                                       PredefinedSugarType> {};
----------------
mizvekov wrote:

One thing is having to define a class, another thing is if that class is 
actually used.

We could make this an empty thing which stores nothing, and make it's methods 
unreachable where possible.

My question is more about, do we actually create these when compiling programs? 
I'd suspect if we do, it would have to be through creating trivial type source 
infos as a workaround somewhere.

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