aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-07-15 14:59:16 +0800
committerGitHub <noreply@github.com>2024-07-15 14:59:16 +0800
commitcaa0e42ceb6e671d68b8b8e1d04f136696a4228b (patch)
treece3cc95448924ab6d0b63ff32cc7574ac849660c /llvm/lib/CodeGen/CodeGen.cpp
parent5555a9e657939dafb569a825fecd1d0f4202b21d (diff)
downloadllvm-caa0e42ceb6e671d68b8b8e1d04f136696a4228b.zip
llvm-caa0e42ceb6e671d68b8b8e1d04f136696a4228b.tar.gz
llvm-caa0e42ceb6e671d68b8b8e1d04f136696a4228b.tar.bz2
Fix assertion failure in PR98681 (#98860)
See https://en.cppreference.com/w/cpp/numeric/math/pow: ``` C++98 added overloads where exp has type int on top of C [pow()](https://en.cppreference.com/w/c/numeric/math/pow), and the return type of std::pow(float, int) was float. However, the additional overloads introduced in C++11 specify that std::pow(float, int) should return double. [LWG issue 550](https://cplusplus.github.io/LWG/issue550) was raised to target this conflict, and the resolution is to removed the extra int exp overloads. ```
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions