diff options
author | Melanie Blower <melanie.blower@intel.com> | 2020-09-29 10:44:36 -0700 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2020-10-25 06:46:25 -0700 |
commit | 2e204e23911b1f8bd1463535da40c6e48747a138 (patch) | |
tree | 258e489841ba64dbd08205485f0ef481f06dd545 /clang/lib/CodeGen/CGCall.cpp | |
parent | 3052e474eceb25e3699940d6a7270550eed66606 (diff) | |
download | llvm-2e204e23911b1f8bd1463535da40c6e48747a138.zip llvm-2e204e23911b1f8bd1463535da40c6e48747a138.tar.gz llvm-2e204e23911b1f8bd1463535da40c6e48747a138.tar.bz2 |
[clang] Enable support for #pragma STDC FENV_ACCESS
Reviewers: rjmccall, rsmith, sepavloff
Differential Revision: https://reviews.llvm.org/D87528
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 93be1b8..f148397 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -4837,7 +4837,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, /*AttrOnCallSite=*/true); if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl)) - if (FD->usesFPIntrin()) + if (FD->hasAttr<StrictFPAttr>()) // All calls within a strictfp function are marked strictfp Attrs = Attrs.addAttribute(getLLVMContext(), llvm::AttributeList::FunctionIndex, @@ -4902,7 +4902,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, getBundlesForFunclet(CalleePtr); if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl)) - if (FD->usesFPIntrin()) + if (FD->hasAttr<StrictFPAttr>()) // All calls within a strictfp function are marked strictfp Attrs = Attrs.addAttribute(getLLVMContext(), llvm::AttributeList::FunctionIndex, |