This is an archive of the discontinued LLVM Phabricator instance.

[NFC][AsmPrinter] Windows warning: Use explicit cast
ClosedPublic

Authored by dstuttard on Jan 13 2021, 4:58 AM.

Details

Summary

static_cast for uint64_t to unsigned gives a MS VC build warning
for Windows:

warning C4309: 'static_cast': truncation of constant value

Use an explicit cast instead.

Change-Id: I692d335b4913070686a102780c1fb05b893a2f69

Diff Detail

Event Timeline

dstuttard created this revision.Jan 13 2021, 4:58 AM
dstuttard requested review of this revision.Jan 13 2021, 4:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2021, 4:58 AM
dstuttard updated this revision to Diff 316372.Jan 13 2021, 5:25 AM

More in line with other similar fixes

This revision is now accepted and ready to land.Jan 13 2021, 7:02 AM
This revision was landed with ongoing or failed builds.Jan 14 2021, 1:12 AM
This revision was automatically updated to reflect the committed changes.