Skip to content

Commit 971e769

Browse files
authored
Fix C++ code compilation on ARM with LLVM10 (#36674)
1 parent ad4b1ec commit 971e769

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/debuginfo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,17 @@ class JuliaJITEventListener: public JITEventListener
243243
auto sName = section.getName();
244244
if (!sName)
245245
continue;
246+
if (sName.get() != ".ARM.exidx") {
247+
continue;
248+
}
246249
#else
247250
StringRef sName;
248251
if (section.getName(sName))
249252
continue;
250-
#endif
251253
if (sName != ".ARM.exidx") {
252254
continue;
253255
}
256+
#endif
254257
}
255258
uint64_t loadaddr = L.getSectionLoadAddress(section);
256259
size_t seclen = section.getSize();

0 commit comments

Comments
 (0)