================
@@ -134,6 +134,25 @@ class RISCVTargetInfo : public TargetInfo {
bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize,
bool &HasSizeMismatch) const override;
+
+ bool checkCFProtectionBranchSupported() const override {
+ return ISAInfo->hasExtension("zicfilp");
----------------
mylai-mtk wrote:
Fixed: Always return supported for `-fcf-protection=branch`.
https://github.com/llvm/llvm-project/pull/109600
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits