This is an archive of the discontinued LLVM Phabricator instance.

Avoid implementation defined behavior in a test.
ClosedPublic

Authored by danalbert on Jan 26 2017, 1:38 PM.

Details

Summary

num_put::put uses %p for pointer types, but the exact format of %p is
implementation defined behavior for the C library. Compare output to
snprintf for portability.

Diff Detail

Repository
rL LLVM

Event Timeline

danalbert created this revision.Jan 26 2017, 1:38 PM
EricWF accepted this revision.Feb 2 2017, 11:53 AM
This revision is now accepted and ready to land.Feb 2 2017, 11:53 AM
This revision was automatically updated to reflect the committed changes.