diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2025-02-21 14:05:21 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-21 14:05:21 -0600 |
commit | 45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342 (patch) | |
tree | 8984286f2b17daca9885a0a562e2c3bec1436a2f /llvm/lib/IR/DIBuilder.cpp | |
parent | 741f923fac33880d24e9990f0b90c77daa2fb4b6 (diff) | |
download | llvm-45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342.zip llvm-45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342.tar.gz llvm-45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342.tar.bz2 |
[Support] Fix for non-constexpr `__PRETTY_FUNCTION__` on older gcc (#128212)
Prior to gcc version 9, the `__PRETTY_FUNCTION__` macro was not declared
constexpr. In that case, don't declare this as constexpr, and switch the
static asserts to runtime asserts.
Verified this should work on all supported compilers:
https://godbolt.org/z/T77rvPW5z
Followup to #127893 / 8a39214b7e6e79e65135b7dbcc98b427a032d5fb
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
0 files changed, 0 insertions, 0 deletions