Skip to content

Commit 9022863

Browse files
committed
Fix GDBJIT code for older Clangs
https://bugs.webkit.org/show_bug.cgi?id=295886 rdar://problem/155784893 Reviewed by Yusuke Suzuki. Clang 16 complains that these calls aren't prefixed with template. ``` jit/GdbJIT.cpp:145:44: error: use 'template' keyword to treat 'rawSlotAt' as a dependent template name 145 | T* operator->() { return m_writer->rawSlotAt<T>(m_offset); } ``` Placate it Canonical link: https://commits.webkit.org/297355@main
1 parent 29e9ded commit 9022863

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Source/JavaScriptCore/jit/GdbJIT.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ class Writer : public RefCountedAndCanMakeWeakPtr<Writer> {
142142
{
143143
}
144144

145-
T* operator->() { return m_writer->rawSlotAt<T>(m_offset); }
146-
T operator*() { return *m_writer->rawSlotAt<T>(m_offset); }
145+
T* operator->() { return m_writer->template rawSlotAt<T>(m_offset); }
146+
T operator*() { return *m_writer->template rawSlotAt<T>(m_offset); }
147147

148148
void set(const T& value)
149149
{
150-
writeUnalignedValue(m_writer->addressAt<T>(m_offset), value);
150+
writeUnalignedValue(m_writer->template addressAt<T>(m_offset), value);
151151
}
152152

153153
Slot<T> at(int i) { return Slot<T>(m_writer, m_offset + sizeof(T) * i); }

0 commit comments

Comments
 (0)