[clang] [clang][ARM] Fix warning for using VFP from interrupts. (PR #91870)
Chris Copeland via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 08:24:13 PDT 2024
================
@@ -1329,6 +1329,11 @@ void SemaARM::handleInterruptAttr(Decl *D, const ParsedAttr &AL) {
return;
}
+ const TargetInfo &TI = getASTContext().getTargetInfo();
+ if (TI.hasFeature("vfp")) {
+ Diag(D->getLocation(), diag::warn_arm_interrupt_vfp_clobber);
+ }
----------------
chrisnc wrote:
Huh, I guess the rule has exceptions so the clang-format checker doesn't flag it? Will fix.
https://github.com/llvm/llvm-project/pull/91870
More information about the cfe-commits
mailing list