Skip to content

Commit 1b27527

Browse files
authored
Merge pull request #4137 from adrian-prantl/noptrauthassert
Remove assertion
2 parents 93ecb2b + fca7dc2 commit 1b27527

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)