[clang] [clang][ARM] Fix warning for using VFP from interrupts. (PR #91870)
David Spickett via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 01:54:22 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);
+ }
----------------
DavidSpickett wrote:
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/91870
More information about the cfe-commits
mailing list