This fixes a regression since SVN rev 273808 (which was supposed to not change functionality).
The regression caused miscompilations (noted in the wild when targeting AArch64) on platforms with 32 bit long.
Differential D32850
[ArgPromotion] Fix a truncated variable mstorsjo on May 4 2017, 2:12 AM. Authored by
Details This fixes a regression since SVN rev 273808 (which was supposed to not change functionality). The regression caused miscompilations (noted in the wild when targeting AArch64) on platforms with 32 bit long.
Diff Detail
Event TimelineComment Actions Wouldn't it be better to set the type manually to something like uint32_t or uint64_t? To make sure they're the same across all arches? Comment Actions That'd work as well. Although in this case, ArgIndex.second is a std::vector<uint64_t>, so auto here always means uint64_t, regardless of platform. Comment Actions Right, makes sense. This is an obvious fix, so I feel comfortable approving this one. LGTM. Thanks! Comment Actions If I understand what happened, this is scary -- if clang-tidy introduces bugs like this perhaps we should think twice before checking in large mechanical changes like 273808? Have you filed a bug for clang-tidy specifically? |