This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Fix SmallVector unused template instantiation on 32-bit systems.
ClosedPublic

Authored by browneee on Apr 30 2020, 3:25 PM.

Details

Summary

This was introduced in dda3c19a3618dce94 aka D77621.

The unused template instantiation causes a warning on 32 bit systems
about truncating a uint64_t to 32-bit size_t.

Diff Detail

Event Timeline

browneee created this revision.Apr 30 2020, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2020, 3:25 PM
dblaikie accepted this revision.Apr 30 2020, 3:46 PM

Looks good - thanks!

This revision is now accepted and ready to land.Apr 30 2020, 3:46 PM
smeenai accepted this revision.Apr 30 2020, 3:51 PM
smeenai added inline comments.
llvm/lib/Support/SmallVector.cpp
86

Wouldn't hurt to include stdint.h explicitly in this file, to ensure these constants are available.

This revision was automatically updated to reflect the committed changes.
dblaikie added inline comments.Apr 30 2020, 4:45 PM
llvm/lib/Support/SmallVector.cpp
86

Sorry I didn't catch this - @browneee Could you commit this in a follow-up (no need to send it for review)?

browneee marked 3 inline comments as done.Apr 30 2020, 5:58 PM
browneee added inline comments.
llvm/lib/Support/SmallVector.cpp
86

Done:
https://github.com/llvm/llvm-project/commit/a1bd5cd539f9e2fd34e522b848e751342985e882

Sorry I missed your comment smeenai. I didn't realize how phabricator shows approved with still open comments.