aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-07-23 00:03:19 +0200
committerGitHub <noreply@github.com>2025-07-23 00:03:19 +0200
commiteb0d8f9272f7c734cdaf31bc33a18e1619e021e4 (patch)
tree3acf3b0bb98cfb7e396d4d6db041830a1d742160
parent160d46d4c3f456868c41d56d5819d7ae2a1ba5d5 (diff)
downloadllvm-eb0d8f9272f7c734cdaf31bc33a18e1619e021e4.zip
llvm-eb0d8f9272f7c734cdaf31bc33a18e1619e021e4.tar.gz
llvm-eb0d8f9272f7c734cdaf31bc33a18e1619e021e4.tar.bz2
[libunwind] Fix return type of `DwarfFDECache::findFDE()` in definition (#146308)
Needed to resolve this compilation error on some systems: lib/libunwind/src/UnwindCursor.hpp:153:38: error: return type of out-of-line definition of 'libunwind::DwarfFDECache::findFDE' differs from that in the declaration typename A::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ lib/libunwind/src/libunwind.cpp:31:10: note: in file included from lib/libunwind/src/libunwind.cpp:31: #include "UnwindCursor.hpp" ^ lib/libunwind/src/UnwindCursor.hpp:100:17: note: previous declaration is here static pint_t findFDE(pint_t mh, pint_t pc); ~~~~~~~^
-rw-r--r--libunwind/src/UnwindCursor.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp
index 55db035..9a1afd3 100644
--- a/libunwind/src/UnwindCursor.hpp
+++ b/libunwind/src/UnwindCursor.hpp
@@ -173,7 +173,8 @@ bool DwarfFDECache<A>::_registeredForDyldUnloads = false;
#endif
template <typename A>
-typename A::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) {
+typename DwarfFDECache<A>::pint_t DwarfFDECache<A>::findFDE(pint_t mh,
+ pint_t pc) {
pint_t result = 0;
_LIBUNWIND_LOG_IF_FALSE(_lock.lock_shared());
for (entry *p = _buffer; p < _bufferUsed; ++p) {