[FPEnv] Fix complex operations in strictfp mode
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 13 Jan 2023 15:32:10 +0000 (22:32 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 24 Jan 2023 09:40:11 +0000 (16:40 +0700)
commitd595b59d5c9c8e56c3b3d142912ee16a02071690
tree1e11b481fc8fcc7b8f9726ba8afe1bf861070a52
parent2a16e1ff7d2735001dbe40e607823857f4bedd0e
[FPEnv] Fix complex operations in strictfp mode

Operations on floating-point complex data had incorrect FP attributes
in strictfp mode, because IRBuilder object was not synchronized with AST
node attributes.

Differential Revision: https://reviews.llvm.org/D141765
clang/lib/CodeGen/CGExprComplex.cpp
clang/test/CodeGen/complex-strictfp.c