================
@@ -7941,6 +7942,32 @@ static bool handleFunctionTypeAttr(TypeProcessingState
&state, ParsedAttr &attr,
return true;
}
+ if (attr.getKind() == ParsedAttr::AT_CFISalt) {
+ if (attr.getNumArgs() == 0)
----------------
erichkeane wrote:
The point of assertions is to assert-based-on your assumptions.
EITHER:
1- You're not assuming anything, thus this check should diagnose incorrect
argument count.
2- This is a 'dead' branch, and should just be an assume.
https://github.com/llvm/llvm-project/pull/141846
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits