This is an archive of the discontinued LLVM Phabricator instance.

[clang] fix oops: enable implicit moves in MSVC compatibility mode
ClosedPublic

Authored by mizvekov on Jul 19 2021, 12:43 PM.

Details

Summary

When disabling simpler implicit moves in MSVC compatibility mode as
a workaround in D105518, we forgot to make the opposite change and
enable regular (P1825) implicit moves in the same mode.

As a result, we were not doing any implicit moves at all. OOPS!

This fixes it and adds test for this.

This is a fix to a temporary workaround, there is ongoing
work to replace this, applying the workaround only to
system headers and the ::stl namespace.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Diff Detail

Event Timeline

mizvekov created this revision.Jul 19 2021, 12:43 PM
mizvekov published this revision for review.Jul 19 2021, 1:58 PM
mizvekov added a reviewer: aaron.ballman.
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2021, 1:58 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jul 20 2021, 12:06 PM

Oops! Good catch, LGTM!

This revision is now accepted and ready to land.Jul 20 2021, 12:06 PM
This revision was landed with ongoing or failed builds.Jul 20 2021, 2:32 PM
This revision was automatically updated to reflect the committed changes.