This is an archive of the discontinued LLVM Phabricator instance.

Document a bug in loop-convert and fix one of its subcases.
ClosedPublic

Authored by angelgarcia on Oct 5 2015, 3:42 AM.

Details

Summary

Now that we prioritize copying trivial types over using const-references where possible, I found some cases where, after the transformation, the loop was using the address of the local copy instead of the original object.

Diff Detail

Repository
rL LLVM

Event Timeline

angelgarcia updated this revision to Diff 36497.Oct 5 2015, 3:42 AM
angelgarcia retitled this revision from to Document a bug in loop-convert and fix one of its subcases..
angelgarcia updated this object.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: cfe-commits, alexfh.
klimek accepted this revision.Oct 5 2015, 4:11 AM
klimek edited edge metadata.

lg

clang-tidy/modernize/LoopConvertCheck.cpp
529 ↗(On Diff #36497)

Use "UOP".

This revision is now accepted and ready to land.Oct 5 2015, 4:11 AM
angelgarcia updated this revision to Diff 36500.Oct 5 2015, 4:15 AM
angelgarcia edited edge metadata.

Use "UOP".

This revision was automatically updated to reflect the committed changes.
angelgarcia closed this revision.Oct 5 2015, 4:17 AM