Skip to content

Commit fca7dc2

Browse files
committed
Remove assertion
1 parent 93ecb2b commit fca7dc2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/LLDBMemoryReader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ bool LLDBMemoryReader::queryDataLayout(DataLayoutQueryType type, void *inBuffer,
1515
void *outBuffer) {
1616
switch (type) {
1717
case DLQ_GetPtrAuthMask: {
18-
assert(m_process.GetCodeAddressMask() == m_process.GetDataAddressMask() &&
19-
"not supported");
18+
// The MemoryReader API doesn't distinguish between the two, so
19+
// this configuration is not yet supported.
20+
if (m_process.GetCodeAddressMask() != m_process.GetDataAddressMask())
21+
return false;
2022
lldb::addr_t ptrauth_mask = m_process.GetCodeAddressMask();
2123
if (!ptrauth_mask)
2224
return false;

0 commit comments

Comments
 (0)