rjmccall added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.h:4348
+ /// Query for the use of constrained floating point math
+ bool isStrictFP() { return Builder.getIsFPConstrained(); }
+
kpn wrote:
> rjmccall wrote:
> > How is this set that
kpn marked an inline comment as done.
kpn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.h:4348
+ /// Query for the use of constrained floating point math
+ bool isStrictFP() { return Builder.getIsFPConstrained(); }
+
rjmccall wrote:
>
rjmccall added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.h:4348
+ /// Query for the use of constrained floating point math
+ bool isStrictFP() { return Builder.getIsFPConstrained(); }
+
How is this set that we don't end up also setting it
kpn created this revision.
kpn added reviewers: rjmccall, pcc, mibintc.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The rules of the strictfp attribute say that if it is used inside a function
then it must also be in the function definition. Initialization of C++