[all-commits] [llvm/llvm-project] 45ca39: [Support] Fix for non-constexpr `__PRETTY_FUNCTION...
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Fri Feb 21 12:05:45 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342
https://github.com/llvm/llvm-project/commit/45ca39d8e1a2b2cc9d67f7a1999e39dc2f77f342
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2025-02-21 (Fri, 21 Feb 2025)
Changed paths:
M llvm/include/llvm/Support/TypeName.h
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list