Skip to content

Commit e07d50b

Browse files
committed
[libunwind] Fix return type of DwarfFDECache::find() in definition
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); ~~~~~~~^
1 parent 7df458b commit e07d50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/UnwindCursor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ bool DwarfFDECache<A>::_registeredForDyldUnloads = false;
173173
#endif
174174

175175
template <typename A>
176-
typename A::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) {
176+
typename DwarfFDECache<A>::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) {
177177
pint_t result = 0;
178178
_LIBUNWIND_LOG_IF_FALSE(_lock.lock_shared());
179179
for (entry *p = _buffer; p < _bufferUsed; ++p) {

0 commit comments

Comments
 (0)