Bug 1751823 - Add UBSan suppression to test. r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D147230
This commit is contained in:
Tyson Smith 2022-05-26 06:15:35 +00:00
Родитель d6d284c124
Коммит 08f38dc0db
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -142,8 +142,12 @@ struct StackWalkTester {
return 0;
}
MOZ_NEVER_INLINE MOZ_EXPORT static void LeafCallback(
int aDepth, int aLastSkipped, int aIgnored, StackWalkTester& aTester) {
#if defined(__clang__)
__attribute__((no_sanitize("function")))
#endif
MOZ_NEVER_INLINE MOZ_EXPORT static void
LeafCallback(int aDepth, int aLastSkipped, int aIgnored,
StackWalkTester& aTester) {
if (aDepth == aLastSkipped) {
aTester.mFirstFramePC = CallerPC();
}