[Clang][CodeGen] Fix type for atomic float incdec operators (#107075)
commit149bfdd61c961edbf49c2ea7fadf9d3c1a79a55e
authorYingwei Zheng <dtcxzyw2333@gmail.com>
Wed, 4 Sep 2024 04:19:46 +0000 (4 12:19 +0800)
committerTobias Hieta <tobias@hieta.se>
Tue, 1 Oct 2024 06:47:00 +0000 (1 08:47 +0200)
treed4ed74562edd26e422e4fcb3219b8d496e45d832
parent8a25c601eb64bcdb7c6c74bee52655468dfdd91b
[Clang][CodeGen] Fix type for atomic float incdec operators (#107075)

`llvm::ConstantFP::get(llvm::LLVMContext&, APFloat(float))` always
returns a f32 constant.
Fix https://github.com/llvm/llvm-project/issues/107054.
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/CodeGen/X86/x86-atomic-double.c
clang/test/CodeGen/X86/x86-atomic-long_double.c