[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 22 19:56:22 PDT 2025
================
@@ -649,6 +649,10 @@ template <> const CountAttributedType *Type::getAs() const {
return getAsSugar<CountAttributedType>(this);
}
+template <> const OverflowBehaviorType *Type::getAs() const {
+ return getAsSugar<OverflowBehaviorType>(this);
+}
----------------
mizvekov wrote:
The `OverflowBehaviorType` is never a sugar node, so you shouldn't have to provide this specialization.
https://github.com/llvm/llvm-project/pull/148914
More information about the cfe-commits
mailing list