This is an archive of the discontinued LLVM Phabricator instance.

Adapt UBSan integer truncation tests to NetBSD
ClosedPublic

Authored by krytarowski on Nov 6 2018, 6:00 AM.

Details

Summary

The NetBSD headers use internal indirect type for
standard *int*_t definitions. The internal type is unrolled
inside the sanitizer into e.g. __int32_t from int32_t.

This symbol mangling causes pattern mismatch in
the interger truncation tests as they expect exact
types such as 'int32_t'.

Change the pattern rules so every acceptable internal
form of *int*_t will be accepted flawlessly.

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Nov 6 2018, 6:00 AM
lebedev.ri accepted this revision.Nov 6 2018, 6:15 AM

Thanks!
That is the relaxation of the tests i was going to do.
It's kinda ugly, but well...

This revision is now accepted and ready to land.Nov 6 2018, 6:15 AM
This revision was automatically updated to reflect the committed changes.